docs.unity.cn
    Show / Hide Table of Contents

    Method OnStartRunning

    OnStartRunning()

    Runs just before the system's first update after it is enabled.

    Declaration
    protected override void OnStartRunning()
    Overrides
    ComponentSystemBase.OnStartRunning()
    Remarks

    Ensure that the final elapsedTime of the very first OnUpdate call is the original Time.ElapsedTime value (usually zero) without a deltaTime applied. Effectively, this code preemptively counteracts the first OnUpdate call.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023