internal void OnEnable() { PResourceManager.SetDefaultResourcePath("Assets/Res/Scripts/Editor/res/"); Texture icon = PResourceManager.LoadTexture(EditorGUIUtility.isProSkin ? "Textures/Icon_Dark.png" : "Textures/Icon_Light.png"); titleContent = new GUIContent("Preset", icon); minSize = new Vector2(250, 100); wantsMouseMove = true; PresetDecoCenter.Start(); PPaintCenter.ClientRepaints -= Repaint; PPaintCenter.ClientRepaints += Repaint; }
internal void OnDestroy() { PPaintCenter.ClientRepaints -= Repaint; PresetDecoCenter.Stop(); }
internal void OnGUI() { PresetDecoCenter.OnGUI(position, this == focusedWindow); }