Class ActionBasedContinuousTurnProvider
Locomotion provider that allows the user to smoothly rotate their rig continuously over time using a specified input action.
Inheritance
ActionBasedContinuousTurnProvider
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.Interaction.Toolkit
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("XR/Locomotion/Continuous Turn Provider (Action-based)", 11)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.5/api/UnityEngine.XR.Interaction.Toolkit.ActionBasedContinuousTurnProvider.html")]
public class ActionBasedContinuousTurnProvider : ContinuousTurnProviderBase
Properties
leftHandTurnAction
The Input System Action that Unity uses to read Turn data from the left hand controller. Must be a UnityEngine.InputSystem.InputActionType.Value UnityEngine.InputSystem.Controls.Vector2Control Control.
Declaration
public InputActionProperty leftHandTurnAction { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
See Also
rightHandTurnAction
The Input System Action that Unity uses to read Turn data from the right hand controller. Must be a UnityEngine.InputSystem.InputActionType.Value UnityEngine.InputSystem.Controls.Vector2Control Control.
Declaration
public InputActionProperty rightHandTurnAction { get; set; }
Property Value
Type | Description |
---|---|
InputActionProperty |
See Also
Methods
OnDisable()
See MonoBehaviour.
Declaration
protected void OnDisable()
See Also
OnEnable()
See MonoBehaviour.
Declaration
protected void OnEnable()
See Also
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. |