Beispiel #1
0
 public static void ShowEditor()
 {
     editor              = GetWindow <uNodeEditor>();
     editor.minSize      = new Vector2(800, 600);
     editor.titleContent = new GUIContent("uNode Editor");
     editor.manager      = new uNodeManager();
 }
Beispiel #2
0
 public static void ShowWindow(uNodeEditor p)
 {
     parent = p;
     window = (uNodeSettingsWindow)GetWindow(typeof(uNodeSettingsWindow));
     window.titleContent = new GUIContent("Settings");
     window.minSize      = new Vector2(300, 260);
     window.position     = new Rect(new Vector2(Screen.width / 2f, Screen.height / 2f), window.minSize);
     window.Show();
 }