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

◆ IsImported() [1/2]

static Boolean IsImported ( [NotNull] Object instance)
static

Checks if the object is an asset in the AssetDatabase.

If you are sure the asset file exists but this method returns false then you need to Import() the asset.

Unlike AssetDatabase, will not throw a NullRef if you pass null.

Parameters
instanceThe instance to test.
Returns
Returns false if the object isn't in the database or if the object is null.
See also