Class ActionBasedContinuousTurnProvider
Locomotion provider that allows the user to smoothly rotate their rig continuously over time using a specified input action.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
[AddComponentMenu("XR/Locomotion/Continuous Turn Provider (Action-based)")]
public class ActionBasedContinuousTurnProvider : ContinuousTurnProviderBase
Properties
leftHandTurnAction
The Input System Action that will be used to read Turn data from the left hand controller. Must be a Value Vector2Control Control.
Declaration
public InputActionProperty leftHandTurnAction { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
rightHandTurnAction
The Input System Action that will be used to read Turn data from the right hand controller. Must be a Value Vector2Control Control.
Declaration
public InputActionProperty rightHandTurnAction { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
Methods
OnDisable()
Declaration
protected void OnDisable()
OnEnable()
Declaration
protected void OnEnable()
ReadInput()
Reads the current value of the turn input.
Declaration
protected override Vector2 ReadInput()
Returns
Type | Description |
---|---|
Vector2 | Returns the input vector, such as from a thumbstick. |