Documentation

Unity Engine


Unity Engine


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

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

CreateCommandBufferCreate a command buffer for the parent system to play back.
SetAllocatorSet the allocator that command buffers created with this singleton should be allocated with.
SetPendingBufferListSets the list of command buffers to play back when this system updates.