VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
AVR_Controller_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_Controller), true)]
10  [CanEditMultipleObjects]
12  {
13  public override void OnInspectorGUI()
14  {
15  base.OnInspectorGUI();
16 
17  AVR_Controller controller = (AVR_Controller) target;
18 
19  if (GUILayout.Button("Add Module"))
20  {
21  AVR_Controller_ModuleWizard.ShowWindow(controller.gameObject, "Controller Module Wizard");
22  }
23  }
24  }
25 }
Represents a VR controller. Provides functionality for spacial tracking and haptic feedback...