private void OnDestroy() { StylePickCenter.closeWindows -= CloseWindow; StylePickCenter.Stop(); PPaintCenter.ClientRepaints -= Repaint; _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(); }
private void ShowFilter() { Action <GameObject> a = o => { if (o != null && _target.prefab != o) { _target.prefab = o; } }; StylePickCenter.Show(a, _type, _target.prefab); }
private void OnGUI() { StylePickCenter.OnGUI(position, focusedWindow == this); }