Class ActionBasedContinuousMoveProvider
Locomotion provider that allows the user to smoothly move their rig continuously over time using a specified input action.
Inheritance
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("XR/Locomotion/Continuous Move Provider (Action-based)", 11)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.5/api/UnityEngine.XR.Interaction.Toolkit.ActionBasedContinuousMoveProvider.html")]
public class ActionBasedContinuousMoveProvider : ContinuousMoveProviderBase
Properties
leftHandMoveAction
The Input System Action that Unity uses to read Move data from the left hand controller. Must be a Unity
Declaration
public InputActionProperty leftHandMoveAction { get; set; }
Property Value
Type | Description |
---|---|
Input |
See Also
rightHandMoveAction
The Input System Action that Unity uses to read Move data from the right hand controller. Must be a Unity
Declaration
public InputActionProperty rightHandMoveAction { get; set; }
Property Value
Type | Description |
---|---|
Input |
See Also
Methods
OnDisable()
See Mono
Declaration
protected void OnDisable()
See Also
OnEnable()
See Mono
Declaration
protected void OnEnable()
See Also
ReadInput()
Reads the current value of the move input.
Declaration
protected override Vector2 ReadInput()
Returns
Type | Description |
---|---|
Vector2 | Returns the input vector, such as from a thumbstick. |