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_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]
11
public
class
AVR_PlayerRig_Editor
:
AVR_Component_Editor
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
}
AVR.Core.AVR_PlayerRig
Represents the players VR setup. Only one instance at a time is allowed.
Definition:
AVR_PlayerRig.cs:14
AVR.UEditor.Core.AVR_PlayerRig_Editor
Definition:
AVR_PlayerRig_Editor.cs:11
AVR.UEditor.Core.AVR_PlayerRig_Editor.OnEnable
void OnEnable()
Definition:
AVR_PlayerRig_Editor.cs:15
AVR.UEditor.Core.AVR_PlayerRig_Editor.OnInspectorGUI
override void OnInspectorGUI()
Definition:
AVR_PlayerRig_Editor.cs:20
AVR.UEditor.Core.AVR_Component_Editor
Definition:
AVR_Component_Editor.cs:12