docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LocomotionStateExtensions

    Extension methods for LocomotionState.

    Inheritance
    object
    LocomotionStateExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public static class LocomotionStateExtensions

    Methods

    IsActive(LocomotionState)

    Whether this is the state of actively preparing or performing locomotion. This returns true if state is Preparing or Moving, false otherwise.

    Declaration
    public static bool IsActive(this LocomotionState state)
    Parameters
    Type Name Description
    LocomotionState state

    The locomotion state to check.

    Returns
    Type Description
    bool

    Returns true if state is Preparing or Moving, false otherwise.

    In This Article
    Back to top
    Copyright © 2025 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)