Exemple #1
0
 protected override void OnDisable()
 {
     try
     {
         currentPage.Close();
     }
     finally
     {
         EditorApplicationUtility.UnlockReloadAssemblies();
     }
 }
Exemple #2
0
        private void OnDisable()
        {
            if (transparentBackground != null)
            {
                DestroyImmediate(transparentBackground);
                transparentBackground = null;
            }

            if (isValid && activeNode != null)
            {
                activeNode.option.OnFocusLeave(activeNode);
            }

            instance = null;
            EditorApplicationUtility.UnlockReloadAssemblies();
        }