docs.unity.cn
    Show / Hide Table of Contents

    Class ActionBasedContinuousMoveProvider

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

    Inheritance
    Object
    LocomotionProvider
    ContinuousMoveProviderBase
    ActionBasedContinuousMoveProvider
    Inherited Members
    ContinuousMoveProviderBase.moveSpeed
    ContinuousMoveProviderBase.enableStrafe
    ContinuousMoveProviderBase.useGravity
    ContinuousMoveProviderBase.gravityApplicationMode
    ContinuousMoveProviderBase.forwardSource
    ContinuousMoveProviderBase.Update()
    ContinuousMoveProviderBase.ComputeDesiredMove(Vector2)
    ContinuousMoveProviderBase.MoveRig(Vector3)
    LocomotionProvider.startLocomotion
    LocomotionProvider.beginLocomotion
    LocomotionProvider.endLocomotion
    LocomotionProvider.system
    LocomotionProvider.Awake()
    LocomotionProvider.CanBeginLocomotion()
    LocomotionProvider.BeginLocomotion()
    LocomotionProvider.EndLocomotion()
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public class ActionBasedContinuousMoveProvider : ContinuousMoveProviderBase

    Properties

    leftHandMoveAction

    The Input System Action that will be used to read Move data from the left hand controller. Must be a Control.

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

    rightHandMoveAction

    The Input System Action that will be used to read Move data from the right hand controller. Must be a Control.

    Declaration
    public InputActionProperty rightHandMoveAction { 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 move input.

    Declaration
    protected override Vector2 ReadInput()
    Returns
    Type Description
    Vector2

    Returns the input vector, such as from a thumbstick.

    Overrides
    ContinuousMoveProviderBase.ReadInput()

    See Also

    LocomotionProvider
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, October 27, 2021