# CreateCommandBuffer(WorldUnmanaged)

> Create a command buffer for the parent system to play back.

## Definition

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

```csharp
public EntityCommandBuffer CreateCommandBuffer(WorldUnmanaged world)
```

### Parameters

**** (\[WorldUnmanaged]\(/engine/7000.0/script-reference/unity/entities/worldunmanaged)): The world in which to play it back.

### Returns

| Type                                                                                         | Description                      |
| -------------------------------------------------------------------------------------------- | -------------------------------- |
| [EntityCommandBuffer](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer.md) | The command buffer to record to. |

### Remarks

The command buffers created by this method are automatically added to the system's list of pending buffers.
