private static void ShowWindow() { Stereo3DEditorWindow w = (Stereo3DEditorWindow)EditorWindow.GetWindow(typeof(Stereo3DEditorWindow), false, "3D Pro Cam"); w.minSize = new Vector2(200, 300); // Check if we should show the welcome window bool showWelcome = true; if (EditorPrefs.HasKey("CinemaSuite.WelcomeWindow.ShowOnStartup")) { showWelcome = EditorPrefs.GetBool("CinemaSuite.WelcomeWindow.ShowOnStartup"); } if (showWelcome) { // Check if the Welcome Window exists and if so, show it. var helpWindowType = Type.GetType("CinemaSuite.CinemaSuiteWelcome"); if (helpWindowType != null) { GetWindow(helpWindowType); } } }
public static void CreateJavelinCamera() { Stereo3DEditorWindow w = (Stereo3DEditorWindow)EditorWindow.GetWindow(typeof(Stereo3DEditorWindow), false, "3D Pro Cam"); w.minSize = new Vector2(200, 300); }