public static void ShowWindow() { // Get existing open window or if none, make a new one: JanusVRExporterWindow window = EditorWindow.GetWindow <JanusVRExporterWindow>(); window.Show(); window.ResetParameters(); }
private void OnGUI() { Rect rect = this.position; GUILayout.BeginArea(new Rect(border.x, border.y, rect.width - border.width, rect.height - border.height)); GUILayout.Label("JanusVR Unity Exporter Version " + (JanusGlobals.Version).ToString("F2"), EditorStyles.boldLabel); GUILayout.Label("Welcome!"); GUILayout.Label("Open the exporter window by hitting Window -> JanusVR Exporter"); GUILayout.Label("or clicking one of the buttons below:"); if (GUILayout.Button("Check for Updates")) { //JanusVRUpdater.ShowWindow(); } if (GUILayout.Button("Open JanusVR Exporter")) { JanusVRExporterWindow.ShowWindow(); } GUILayout.EndArea(); }
public JanusVRExporterWindow() { instance = this; }