Unity - Scripting API: AssetDatabase.IsSubAsset

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool IsSubAsset(Object obj);

Declaration

public static bool IsSubAsset(int instanceID);

Parameters

Parameter Description
obj The asset object to query.
instanceID Instance ID of the asset object to query.
entityId The EntityID of the asset object to query.

Returns

bool True if the asset is part of another asset, otherwise false.

Description

Checks whether the asset is part of another asset.

Some assets may form part of another asset (for example, a procedural material can be part of a material package). This method determines whether an asset is subordinated in this way.