VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
AVR_Core_MenuItems.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4 using UnityEditor;
5 
6 namespace AVR.UEditor.Core {
7  public class AVR_Core_MenuItems
8  {
9  [MenuItem("AVR/Create Player Rig", false, 1)]
10  public static void createPlayerRig() {
11  AVR_EditorUtility.InstantiatePrefabAsChild(null, "/editor/defaultPrefabPaths/playerRig");
12  }
13 
14  [MenuItem("AVR/Create Root Object", false, 1)]
15  public static void createRootObject()
16  {
17  AVR_EditorUtility.InstantiatePrefabAsChild(null, "/editor/defaultPrefabPaths/rootObject");
18  }
19 
20  [MenuItem("AVR/Documentation", false, -100)]
21  public static void openDocumentation()
22  {
23  string path = System.IO.Path.GetFullPath(AVR.Core.AVR_Settings.get_string("/editor/documentationPath") + "index.html");
24  Application.OpenURL("file:///" + path);
25  }
26 
27  [MenuItem("AVR/arc-vr", false, -999)]
28  public static void openContextScreen()
29  {
30  EditorWindow.GetWindow(typeof(AVR_ArcVRWindow), true, "ARC-VR");
31  }
32  }
33 }