AssetDatabase.Contains Manual     Reference     Scripting  
Scripting > Editor Classes > AssetDatabase
AssetDatabase.Contains

static function Contains (obj : Object) : boolean

static function Contains (instanceID : int) : boolean

Description

Is object an asset?

Returns true when an object is an asset (corresponds to a file in the Assets folder), and false if it is not (for example object in the scene, or an object created at runtime).