UnityEditor.ProceduralMaterialInspector.OnDisable C# (CSharp) Method

OnDisable() public method

public OnDisable ( ) : void
return void
        public override void OnDisable()
        {
            ProceduralMaterial target = base.target as ProceduralMaterial;
            if (((target != null) && (this.m_PlatformSettings != null)) && this.HasModified())
            {
                string message = "Unapplied import settings for '" + AssetDatabase.GetAssetPath(base.target) + "'";
                if (EditorUtility.DisplayDialog("Unapplied import settings", message, "Apply", "Revert"))
                {
                    this.Apply();
                    this.ReimportSubstances();
                }
                this.ResetValues();
            }
            if (this.m_ReimportOnDisable)
            {
                this.ReimportSubstancesIfNeeded();
            }
            Undo.undoRedoPerformed = (Undo.UndoRedoCallback) Delegate.Remove(Undo.undoRedoPerformed, new Undo.UndoRedoCallback(this.UndoRedoPerformed));
            base.OnDisable();
        }