Exemplo n.º 1
0
 public static void ShowWindow()
 {
     window          = EditorWindow.GetWindow <TreeNodeWindow>();
     window.position = windowsPosition;
     window.autoRepaintOnSceneChange = true;
     window.Show();
 }
Exemplo n.º 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);
    }