VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
AVR_PlayerRig_Editor.cs
1 using System.Collections;
2 using System.Collections.Generic;
3 using UnityEngine;
4 using UnityEditor;
5 
6 using AVR.Core;
7 
8 namespace AVR.UEditor.Core {
9  [CustomEditor(typeof(AVR_PlayerRig))]
10  [CanEditMultipleObjects]
12  {
13  protected bool showInputSettings = true;
14 
15  void OnEnable()
16  {
17 
18  }
19 
20  public override void OnInspectorGUI()
21  {
22  DrawToolbar(target);
23 
24  DrawDefaultInspector();
25 
26  AVR_PlayerRig rig = (AVR_PlayerRig)target;
27 
28  //ObjectBuilderScript myScript = (ObjectBuilderScript)target;
29  if (GUILayout.Button("Add Module"))
30  {
31  //myScript.BuildObject();
32  //AVR_PlayerRig_ModuleWizard.CreateWizard(rig);
33  AVR_PlayerRig_ModuleWizard.ShowWindow(rig.gameObject, "Player Rig Module Wizard");
34  }
35  }
36  }
37 }
Represents the players VR setup. Only one instance at a time is allowed.