VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
override void AVR.UEditor.Motion.AVR_LocomotionProvider_Editor.OnInspectorGUI ( )
inline

Definition at line 20 of file AVR_LocomotionProvider_Editor.cs.

21  {
22  DrawToolbar(target);
23 
24  AVR_PlayerRig rig = FindObjectOfType<AVR_PlayerRig>();
25  if(rig==null) {
26  EditorGUILayout.HelpBox("No AVR_PlayerRig object could be found!", MessageType.Error);
27  }
28  else if(rig.GetComponent<CharacterController>() == null) {
29  EditorGUILayout.HelpBox("Parent AVR_PlayerRig does not have a Charactercontroller component. AVR_LocomotionProvider requires a Charactercontroller to work.", MessageType.Warning);
30  if(GUILayout.Button("FIX NOW: Add Charactercontroller to "+rig.gameObject.name)) {
31  rig.gameObject.AddComponent<CharacterController>();
32  }
33  }
34 
35  DrawDefaultInspector();
36  }
Represents the players VR setup. Only one instance at a time is allowed.
override void DrawToolbar(string docu_url)