Documentation

Unity Engine


Unity Engine


SetPendingBufferList(ref UnsafeList<EntityCommandBuffer>)

Sets the list of command buffers to play back when this system updates.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

SetPendingBufferList(UnsafeList<EntityCommandBuffer>)

public void SetPendingBufferList(ref UnsafeList<EntityCommandBuffer> buffers)

Parameters

The list of buffers to play back. This list replaces any existing pending command buffers on this system.

Remarks

This method is only intended for internal use, but must be in the public API due to language restrictions. Command buffers created with EndSimulationEntityCommandBufferSystem.Singleton.CreateCommandBuffer are automatically added to the system's list of pending buffers to play back.