EndSimulationEntityCommandBufferSystem.Singleton
Call SystemAPI.GetSingleton to get this component for this system, and then call EndSimulationEntityCommandBufferSystem.Singleton.CreateCommandBuffer on this singleton to create an ECB to be played back by this system.
Read time 1 minuteLast updated a day ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
- Implements: IComponentData, IQueryTypeParameter, IECBSingleton
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
Method | Description |
|---|---|
| CreateCommandBuffer | Create a command buffer for the parent system to play back. |
| SetAllocator | Set the allocator that command buffers created with this singleton should be allocated with. |
| SetPendingBufferList | Sets the list of command buffers to play back when this system updates. |