docs.unity.cn
    Show / Hide Table of Contents

    Method Update

    Update(WorldUnmanaged)

    Update the system manually.

    Declaration
    public void Update(WorldUnmanaged world)
    Parameters
    Type Name Description
    WorldUnmanaged world

    The WorldUnmanaged for the World instance this handle belongs to.

    Remarks

    If a system manually calls another system's Update(WorldUnmanaged) method from inside its own OnUpdate(ref SystemState) method, EntityQuery objects in the caller system might see unexpected and incorrect change version numbers based on the processing performed in the target system. For this reason, you shouldn't manually update one system from another if both systems are processing entity data, especially if either uses SetChangedVersionFilter(ComponentType[]). This guidance doesn't apply to ComponentSystemGroup or other "pass-through" systems which only update other systems without manipulating entity data.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if this SystemHandle is invalid or does not belong to this world.

    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