示例#1
0
        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("Tree Property", icon);
            TreePropertyCenter.Start();
            PPaintCenter.ClientRepaints -= Repaint;
            PPaintCenter.ClientRepaints += Repaint;
        }
示例#2
0
 private void OnDestroy()
 {
     PPaintCenter.ClientRepaints -= Repaint;
     TreePropertyCenter.Stop();
 }
示例#3
0
 private void OnGUI()
 {
     TreePropertyCenter.OnGUI(position);
 }