public static void OpenWindow() { if (ms_Instance == null) { var inst = ms_Instance = (AnimCompressEditorWindow)GetWindow(typeof(AnimCompressEditorWindow)); EditorApplication.playmodeStateChanged += inst.OnPlayModeChanged; EUtil.SetEditorWindowTitle(inst, "Compressor"); inst.minSize = new Vector2(300, 150); inst.Show(); } }
void OnDestroy() { EditorUtility.ClearProgressBar(); ms_Instance = null; }