docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UpdateRecentering

    UpdateRecentering(float, bool)

    Call this to manage re-centering axis value to axis center. This assumes that TrackValueChange() has been called already this frame.

    Declaration
    public void UpdateRecentering(float deltaTime, bool forceCancel)
    Parameters
    Type Name Description
    float deltaTime

    Current deltaTime, or -1 for immediate re-centering

    bool forceCancel

    If true, cancel any re-centering currently in progress and reset the timer.

    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)