AssetDatabase.Contains 包含
static function Contains (obj : Object) : bool
static function Contains (instanceID : int) : bool
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).
当对象是一个资源(对应资源文件夹中的一个文件)时返回true,否者返回false(例如场景中的对象或者在运行时生成的对象)。