Determines if an object is stored on disk.
// Tells if an Object is stored on disk or not. class PersistentInfo extends EditorWindow { @MenuItem("Examples/Object on Disk?") static function CheckPersistent() { var persistent : boolean = EditorUtility.IsPersistent(Selection.activeObject); Debug.Log(Selection.activeObject.name + ": " + persistent?"Stored on disk":"Not on disk"); } @MenuItem("Examples/Object on Disk?", true) static function ValidateCheckPersistent() { return Selection.activeObject != null; } }