Struct EndSimulationEntityCommandBufferSystem.Singleton
Call GetSingleton<T>() to get this component for this system, and then call CreateCommandBuffer(WorldUnmanaged) on this singleton to create an ECB to be played back by this system.
Namespace: Unity.Entities
Assembly: solution.dll
Syntax
public struct EndSimulationEntityCommandBufferSystem.Singleton : IComponentData, IQueryTypeParameter, IECBSingleton
Remarks
Useful if you want to record entity commands now, but play them back at a later point in the frame, or early in the next frame.
Methods
Name | Description |
---|---|
CreateCommandBuffer(WorldUnmanaged) | Create a command buffer for the parent system to play back. |
SetAllocator(Allocator) | Set the allocator that command buffers created with this singleton should be allocated with. |
SetAllocator(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. |