docs.unity.cn
    Show / Hide Table of Contents

    Interface IECBSingleton

    Interface for use with EntityCommandBufferSystems to store the list of pending buffers, which can be accessed from a bursted ISystem. You should implement a singleton with this interface every time you inherit from EntityCommandBufferSystem.

    Namespace: Unity.Entities
    Syntax
    public interface IECBSingleton

    Methods

    Name Description
    SetAllocator(Allocator)

    Set the allocator that command buffers created with this singleton should be allocated with.

    SetAllocator(AllocatorManager.AllocatorHandle)

    Set the allocator that command buffers created with this singleton should be allocated with.

    SetPendingBufferList(ref UnsafeList<EntityCommandBuffer>)

    Sets the list of command buffers to play back when this system updates.

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