コード例 #1
0
        public static void ShowWindow()
        {
            // Get existing open window or if none, make a new one:
            JanusVRExporterWindow window = EditorWindow.GetWindow <JanusVRExporterWindow>();

            window.Show();

            window.ResetParameters();
        }
コード例 #2
0
        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();
        }
コード例 #3
0
 public JanusVRExporterWindow()
 {
     instance = this;
 }