docs.unity3d.com
    Show / Hide Table of Contents

    Class ActionBasedContinuousTurnProvider

    Locomotion provider that allows the user to smoothly rotate their rig continuously over time using a specified input action.

    Inheritance
    Object
    LocomotionProvider
    ContinuousTurnProviderBase
    ActionBasedContinuousTurnProvider
    Inherited Members
    ContinuousTurnProviderBase.turnSpeed
    ContinuousTurnProviderBase.Update()
    ContinuousTurnProviderBase.GetTurnAmount(Vector2)
    ContinuousTurnProviderBase.TurnRig(Single)
    LocomotionProvider.startLocomotion
    LocomotionProvider.beginLocomotion
    LocomotionProvider.endLocomotion
    LocomotionProvider.system
    LocomotionProvider.Awake()
    LocomotionProvider.CanBeginLocomotion()
    LocomotionProvider.BeginLocomotion()
    LocomotionProvider.EndLocomotion()
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    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 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 Control.

    Declaration
    public InputActionProperty rightHandTurnAction { get; set; }
    Property Value
    Type Description
    InputActionProperty

    Methods

    OnDisable()

    See .

    Declaration
    protected void OnDisable()

    OnEnable()

    See .

    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.

    Overrides
    ContinuousTurnProviderBase.ReadInput()

    See Also

    LocomotionProvider
    ActionBasedSnapTurnProvider
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023