docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method OnStopRunning

    OnStopRunning()

    Called when this system stops running because no entities match the system's EntityQuery objects or because you change the system Enabled property to false.

    Declaration
    [RequiredMember]
    protected virtual void OnStopRunning()
    Remarks

    If the EntityQuery objects defined for a system do not match any existing entities then the system skips updating until a successful match is found. Likewise, if you set Enabled to false, then the system stops running. In both cases, OnStopRunning is called when a running system stops updating; OnStartRunning() is called when it starts updating again.

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