docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method TryPrepareLocomotion

    TryPrepareLocomotion()

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

    Declaration
    protected bool TryPrepareLocomotion()
    Returns
    Type Description
    bool

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

    Remarks

    If this succeeds, then the provider can enter the Moving state either by calling TryStartLocomotionImmediately() or by waiting for the mediator's next Update() in which the provider's canStartMoving is true. When the provider enters the Moving state, it will invoke locomotionStarted and gain access to the XRBodyTransformer.

    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)