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("Search", icon); minSize = new Vector2(300, 100); wantsMouseMove = true; TreeSearchCenter.Start(); PPaintCenter.ClientRepaints -= Repaint; PPaintCenter.ClientRepaints += Repaint; TreeSearchCenter.windowCloseHandler -= ShouldClose; TreeSearchCenter.windowCloseHandler += ShouldClose; }
internal void OnDestroy() { PPaintCenter.ClientRepaints -= Repaint; TreeSearchCenter.windowCloseHandler -= ShouldClose; TreeSearchCenter.Stop(); }
internal void OnGUI() { TreeSearchCenter.OnGUI(position, this == focusedWindow); }