InSceneAssetUtility.IsInSceneAsset

Declaration

public static bool IsInSceneAsset(Object sourceObject);

Parameters

sourceObject The object to check.

Returns

bool True if sourceObject is a an in-scene asset.

Description

Checks if the given object is an in-scene asset.

In-scene assets are scene objects that are referenced by one or more objects in a scene and are of an asset type. Examples of asset types include, but are not limited to, Mesh, Material, and ScriptableObject.

Additional resources: InSceneAssetUtility.CollectInSceneAssets.


Did you find this page useful? Please give it a rating: