VR Development Framework
v 1.0.0
Main Page
Related Pages
Namespaces
Classes
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
Editor
Scripts
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]
11
public
class
AVR_Controller_Editor
:
AVR_Component_Editor
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
}
AVR.Core.AVR_Controller
Represents a VR controller. Provides functionality for spacial tracking and haptic feedback...
Definition:
AVR_Controller.cs:12
AVR.UEditor.Core.AVR_Controller_Editor
Definition:
AVR_Controller_Editor.cs:11
AVR.UEditor.Core.AVR_Controller_Editor.OnInspectorGUI
override void OnInspectorGUI()
Definition:
AVR_Controller_Editor.cs:13
AVR.UEditor.Core.AVR_Component_Editor
Definition:
AVR_Component_Editor.cs:12