docs.unity3d.com
    Show / Hide Table of Contents

    Method ShouldRunSystem

    ShouldRunSystem()

    Reports whether any of this system's entity queries currently match any chunks. This function is used internally to determine whether the system's OnUpdate function can be skipped.

    Declaration
    public bool ShouldRunSystem()
    Returns
    Type Description
    Boolean

    True, if the queries in this system match existing entities or the system has the AlwaysUpdateSystemAttribute.

    Remarks

    A system without any queries also returns true. Note that even if this function returns true, other factors may prevent a system from updating. For example, a system will not be updated if its Enabled property is false.

    In This Article
    • ShouldRunSystem()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023