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

◆ Contains() [1/2]

static Boolean Contains ( EntityId entityId)
static

Tests if the asset is in the database.

Unity marked the AssetDatabase integer instance ID overloads obsolete as a warning on 6000.3.23f1 and 6000.4.11f1 and as an error on 6000.5.10f1, and Object.GetInstanceID as a warning on 6000.4.11f1 and an error on 6000.5.10f1. They still exist in the assemblies but can no longer be called, and no non-obsolete way to turn an integer instance ID into an EntityId remains, so from Unity 6000.4 on this method takes an EntityId.

Parameters
entityIdThe EntityId of an asset.
Returns
Returns true if the asset is imported. Returns false if the asset is not in the database.
See also