private void OnDestroy() { StylePickCenter.closeWindows -= CloseWindow; StylePickCenter.Stop(); PPaintCenter.ClientRepaints -= Repaint; _window = null; }
private static void CloseWindow() { if (_window) { _window.Close(); } _window = null; }
internal static void OpenWindow() { _window = GetWindow <StylePickerWindow>(true); _window.minSize = new Vector2(200, 300); _window.maxSize = new Vector2(400, 800); _window.titleContent = new GUIContent("UI Prefab Picker"); StylePickCenter.Start(); }