docs.unity.cn
    Show / Hide Table of Contents

    Constructor EntityCommandBuffer

    EntityCommandBuffer(Allocator)

    Creates a new command buffer.

    Declaration
    [NotBurstCompatible]
    public EntityCommandBuffer(Allocator label)
    Parameters
    Type Name Description
    Allocator label

    Memory allocator to use for chunks and data

    EntityCommandBuffer(Allocator, PlaybackPolicy)

    Creates a new command buffer.

    Declaration
    [NotBurstCompatible]
    public EntityCommandBuffer(Allocator label, PlaybackPolicy playbackPolicy)
    Parameters
    Type Name Description
    Allocator label

    Memory allocator to use for chunks and data

    PlaybackPolicy playbackPolicy

    Specifies if the EntityCommandBuffer can be played a single time or more than once.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use