docs.unity3d.com
    Show / Hide Table of Contents

    Property PostUpdateCommands

    PostUpdateCommands

    This system's EntityCommandBuffer.

    Declaration
    public EntityCommandBuffer PostUpdateCommands { get; }
    Property Value
    Type Description
    EntityCommandBuffer

    A queue of entity-related commands to playback after the system's update function finishes.

    Remarks

    When iterating over a collection of entities with Entities, the system prohibits structural changes that would invalidate that collection. Such changes include creating and destroying entities, adding or removing components, and changing the value of shared components.

    Instead, add structural change commands to this PostUpdateCommands command buffer. The system executes commands added to this command buffer in order after this system's OnUpdate() function returns. PostUpdateCommands are created with a PlaybackPolicy.SinglePlayback and RecordingMode.Managed.

    In This Article
    • PostUpdateCommands
    Back to top
    Terms of use
    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