UnityEditor.Unsupported.IsDestroyScriptableObject C# (CSharp) Method

IsDestroyScriptableObject() private method

private IsDestroyScriptableObject ( ScriptableObject target ) : bool
target UnityEngine.ScriptableObject
return bool
        public static extern bool IsDestroyScriptableObject(ScriptableObject target);
        public static bool IsDeveloperBuild()

Usage Example

        public virtual void OnDisable()
        {
            AssetImporter target = this.target as AssetImporter;

            if (Unsupported.IsDestroyScriptableObject((ScriptableObject)this) && this.m_MightHaveModified && ((Object)target != (Object)null && !InternalEditorUtility.ignoreInspectorChanges) && (this.HasModified() && !this.AssetWasUpdated()))
            {
                string message = "Unapplied import settings for '" + target.assetPath + "'";
                if (this.targets.Length > 1)
                {
                    message = "Unapplied import settings for '" + (object)this.targets.Length + "' files";
                }
                if (EditorUtility.DisplayDialog("Unapplied import settings", message, "Apply", "Revert"))
                {
                    this.Apply();
                    this.m_MightHaveModified = false;
                    AssetImporterInspector.ImportAssets(this.GetAssetPaths());
                }
            }
            if (this.m_SerializedObject == null || !this.m_SerializedObject.hasModifiedProperties)
            {
                return;
            }
            this.m_SerializedObject.Cache(this.GetInstanceID());
            this.m_SerializedObject = (SerializedObject)null;
        }
All Usage Examples Of UnityEditor.Unsupported::IsDestroyScriptableObject