docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method TryEndLocomotion

    TryEndLocomotion()

    Attempts to transition this provider into the Ended state. This succeeds if isLocomotionActive was true when this was called.

    Declaration
    protected bool TryEndLocomotion()
    Returns
    Type Description
    bool

    Returns true if isLocomotionActive was true when this was called, false otherwise.

    Remarks

    After this provider enters the Ended state, it will invoke locomotionEnded and lose access to the XRBodyTransformer. Then during the mediator's Update() in the next frame, the provider will enter the Idle state, unless it has called TryPrepareLocomotion() or TryStartLocomotionImmediately() again.

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