private void OnDestroy() { Selection.selectionChanged -= selectionChange; EditorApplication.hierarchyWindowChanged += hierarchyWindowChanged; PrefabUtility.prefabInstanceUpdated -= prefabeInstanceUpdated; m_Instance = null; }
private static void Open() { if (m_Instance != null) { EditorWindow.Destroy(m_Instance); } m_Instance = EditorWindow.GetWindow <GUIBindWindow>(); m_Instance.OnInit(); }