docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class StepMoveProvider

    Locomotion provider that allows the user to move their rig in fixed distance steps based on read input values, such as from hand microgesture swipes or the controller thumbstick.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    LocomotionProvider
    StepMoveProvider
    Inherited Members
    LocomotionProvider.mediator
    LocomotionProvider.transformationPriority
    LocomotionProvider.locomotionState
    LocomotionProvider.isLocomotionActive
    LocomotionProvider.locomotionStateChanged
    LocomotionProvider.locomotionStarted
    LocomotionProvider.locomotionEnded
    LocomotionProvider.beforeStepLocomotion
    LocomotionProvider.afterStepLocomotion
    LocomotionProvider.Awake()
    LocomotionProvider.TryPrepareLocomotion()
    LocomotionProvider.TryStartLocomotionImmediately()
    LocomotionProvider.TryEndLocomotion()
    LocomotionProvider.OnLocomotionStarting()
    LocomotionProvider.OnLocomotionEnding()
    LocomotionProvider.OnLocomotionStateChanging(LocomotionState)
    LocomotionProvider.TryQueueTransformation(IXRBodyTransformation)
    LocomotionProvider.TryQueueTransformation(IXRBodyTransformation, int)
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(string, float)
    MonoBehaviour.InvokeRepeating(string, float, float)
    MonoBehaviour.CancelInvoke(string)
    MonoBehaviour.IsInvoking(string)
    MonoBehaviour.StartCoroutine(string)
    MonoBehaviour.StartCoroutine(string, object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(string)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(object)
    MonoBehaviour.destroyCancellationToken
    MonoBehaviour.useGUILayout
    MonoBehaviour.didStart
    MonoBehaviour.didAwake
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, out Component)
    Component.TryGetComponent<T>(out T)
    Component.GetComponent(string)
    Component.GetComponentInChildren(Type, bool)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(bool)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, bool)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(bool)
    Component.GetComponentsInChildren<T>(bool, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type, bool)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>(bool)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, bool)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(bool)
    Component.GetComponentsInParent<T>(bool, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.GetComponentIndex()
    Component.CompareTag(string)
    Component.CompareTag(TagHandle)
    Component.SendMessageUpwards(string, object, SendMessageOptions)
    Component.SendMessageUpwards(string, object)
    Component.SendMessageUpwards(string)
    Component.SendMessageUpwards(string, SendMessageOptions)
    Component.SendMessage(string, object)
    Component.SendMessage(string)
    Component.SendMessage(string, object, SendMessageOptions)
    Component.SendMessage(string, SendMessageOptions)
    Component.BroadcastMessage(string, object, SendMessageOptions)
    Component.BroadcastMessage(string, object)
    Component.BroadcastMessage(string)
    Component.BroadcastMessage(string, SendMessageOptions)
    Component.transform
    Component.transformHandle
    Component.gameObject
    Component.tag
    Object.GetEntityId()
    Object.GetHashCode()
    Object.Equals(object)
    Object.InstantiateAsync<T>(T)
    Object.InstantiateAsync<T>(T, Transform)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int)
    Object.InstantiateAsync<T>(T, int, Transform)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion)
    Object.InstantiateAsync<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>)
    Object.InstantiateAsync<T>(T, int, Transform, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, CancellationToken)
    Object.InstantiateAsync<T>(T, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)
    Object.InstantiateAsync<T>(T, int, ReadOnlySpan<Vector3>, ReadOnlySpan<Quaternion>, InstantiateParameters, CancellationToken)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Scene)
    Object.Instantiate<T>(T, InstantiateParameters)
    Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsByType(Type)
    Object.FindObjectsByType(Type, FindObjectsInactive)
    Object.DontDestroyOnLoad(Object)
    Object.FindAnyObjectByType<T>()
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsByType<T>()
    Object.FindObjectsByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType(Type)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion.Movement
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [AddComponentMenu("XR/Locomotion/Step Move Provider", 11)]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@7.0/api/UnityEngine.XR.Interaction.Toolkit.Locomotion.Movement.StepMoveProvider.html")]
    public class StepMoveProvider : LocomotionProvider

    Properties

    canStartMoving

    Whether the provider has finished preparing for locomotion and is ready to enter the Moving state. This only applies when locomotionState is Preparing, so there is no need for this implementation to query locomotionState.

    Declaration
    public override bool canStartMoving { get; }
    Property Value
    Type Description
    bool
    Overrides
    LocomotionProvider.canStartMoving
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    debounceTime

    The amount of time that Unity waits before starting another step.

    Declaration
    public float debounceTime { get; set; }
    Property Value
    Type Description
    float
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    delayTime

    The time (in seconds) to delay the first step after receiving initial input to start stepping. Subsequent steps while holding down input are delayed by the debounceTime, not the delay time. This delay can be used, for example, as time to set a tunneling vignette effect as a VR comfort option.

    Declaration
    public float delayTime { get; set; }
    Property Value
    Type Description
    float
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    enableStepBackward

    Controls whether to enable backward steps.

    Declaration
    public bool enableStepBackward { get; set; }
    Property Value
    Type Description
    bool
    See Also
    enableStrafe

    enableStrafe

    Controls whether to enable left and right steps.

    Declaration
    public bool enableStrafe { get; set; }
    Property Value
    Type Description
    bool
    See Also
    enableStepBackward

    forwardSource

    The source Transform that defines the forward direction. If not set, Unity uses the camera of the XR Origin.

    Declaration
    public Transform forwardSource { get; set; }
    Property Value
    Type Description
    Transform
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    leftHandStepInput

    Reads input data from the left hand. Input Action must be a Value action type (Vector 2).

    Declaration
    public XRInputValueReader<Vector2> leftHandStepInput { get; set; }
    Property Value
    Type Description
    XRInputValueReader<Vector2>
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    rightHandStepInput

    Reads input data from the right hand. Input Action must be a Value action type (Vector 2).

    Declaration
    public XRInputValueReader<Vector2> rightHandStepInput { get; set; }
    Property Value
    Type Description
    XRInputValueReader<Vector2>
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    stepDistance

    The distance (in meters) Unity moves the rig with each step.

    Declaration
    public float stepDistance { get; set; }
    Property Value
    Type Description
    float
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    transformation

    The transformation that is used by this component to apply step movement.

    Declaration
    public XROriginMovement transformation { get; set; }
    Property Value
    Type Description
    XROriginMovement
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    Methods

    ComputeStepMotion(Vector2)

    Determines the translation in world space for a single step.

    Declaration
    protected virtual Vector3 ComputeStepMotion(Vector2 direction)
    Parameters
    Type Name Description
    Vector2 direction

    The step direction in rig space, where x is right and y is forward.

    Returns
    Type Description
    Vector3

    Returns the translation amount in world space to move the rig.

    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    GetStepDirection(Vector2)

    Determines the direction of the step based on the input vector.

    Declaration
    protected virtual Vector2 GetStepDirection(Vector2 input)
    Parameters
    Type Name Description
    Vector2 input

    Input vector, such as from a thumbstick.

    Returns
    Type Description
    Vector2

    Returns the step direction in rig space, where x is right and y is forward, or zero when there is no step.

    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    OnDisable()

    See MonoBehaviour.

    Declaration
    protected override void OnDisable()
    Overrides
    LocomotionProvider.OnDisable()
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    OnEnable()

    See MonoBehaviour.

    Declaration
    protected override void OnEnable()
    Overrides
    LocomotionProvider.OnEnable()
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    Update()

    See MonoBehaviour.

    Declaration
    protected void Update()
    See Also
    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider

    See Also

    LocomotionProvider
    ContinuousMoveProvider
    SnapTurnProvider
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)