docs.unity.cn
    Show / Hide Table of Contents

    Method Update

    Update()

    Update the system manually.

    Declaration
    public sealed override void Update()
    Overrides
    ComponentSystemBase.Update()
    Remarks

    Systems should never override Update(). Instead, implement system behavior in OnUpdate().

    If a system manually calls another system's Update() method from inside its own OnUpdate() 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.

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