1 using System.Collections;
2 using System.Collections.Generic;
9 namespace AVR.UEditor.Motion {
11 [CanEditMultipleObjects]
14 protected bool rigHasCharacterController =
false;
26 EditorGUILayout.HelpBox(
"No AVR_PlayerRig object could be found!", MessageType.Error);
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>();
35 DrawDefaultInspector();
Represents the players VR setup. Only one instance at a time is allowed.
override void OnInspectorGUI()
Provides locomotion-movement to a controller.