Class CharacterControllerDriver
Drives a
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public class CharacterControllerDriver : MonoBehaviour
Properties
characterController
(Read Only) The
Declaration
protected CharacterController characterController { get; }
Property Value
Type | Description |
---|---|
CharacterController |
locomotionProvider
The LocomotionProvider object to listen to.
Declaration
public LocomotionProvider locomotionProvider { get; set; }
Property Value
Type | Description |
---|---|
LocomotionProvider |
maxHeight
The maximum height of the character's capsule that will be set by this behavior.
Declaration
public float maxHeight { get; set; }
Property Value
Type | Description |
---|---|
Single |
See Also
minHeight
The minimum height of the character's capsule that will be set by this behavior.
Declaration
public float minHeight { get; set; }
Property Value
Type | Description |
---|---|
Single |
See Also
xrRig
(Read Only) The XRRig used for driving the
Declaration
protected XRRig xrRig { get; }
Property Value
Type | Description |
---|---|
XRRig |
Methods
Awake()
See
Declaration
protected void Awake()
OnDisable()
See
Declaration
protected void OnDisable()
OnEnable()
See
Declaration
protected void OnEnable()
Start()
See
Declaration
protected void Start()
UpdateCharacterController()
Update the
Declaration
protected virtual void UpdateCharacterController()