CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ GetScene()

static Path GetScene ( [NotNull] Object instanceOrAsset)
static

Returns the scene's path if the object is instantiated in a scene, otherwise returns the object's path.

Parameters
instanceOrAssetAn object instance or asset.
Returns
The scene path if the object is an instance in the scene. Otherwise the asset's path.
See also