示例#1
0
 public static void ShowWindow()
 {
     window          = EditorWindow.GetWindow <TreeNodeWindow>();
     window.position = windowsPosition;
     window.autoRepaintOnSceneChange = true;
     window.Show();
 }
示例#2
0
    public static void ShowWindow()
    {
        window          = EditorWindow.GetWindow <TreeNodeWindow>();
        window.position = windowsPosition;
        window.autoRepaintOnSceneChange = true;
        window.Show();

        EditorPrefs.SetFloat(BehaviorTreeX, windowsPosition.x);
        EditorPrefs.SetFloat(BehaviorTreeY, windowsPosition.y);
        EditorPrefs.SetFloat(BehaviorTreeWidth, windowsPosition.width);
        EditorPrefs.SetFloat(BehaviorTreeHeight, windowsPosition.height);
    }