# SetPendingBufferList(ref UnsafeList<EntityCommandBuffer>)

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

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## SetPendingBufferList(UnsafeList\<EntityCommandBuffer>)

```csharp
public void SetPendingBufferList(ref UnsafeList<EntityCommandBuffer> buffers)
```

### Parameters

**** (\[UnsafeList\<EntityCommandBuffer>]\(/engine/7000.0/script-reference/unity/collections/lowlevel/unsafe/unsafelist1)): 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](/engine/7000.0/script-reference/unity/entities/endsimulationentitycommandbuffersystem/singleton/createcommandbuffer.md) are automatically added to the system's list of pending buffers to play back.
