# EntityCommandBuffer.ParallelWriter

> Allows concurrent (deterministic) command buffer recording.

## Definition

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

```csharp
public struct EntityCommandBuffer.ParallelWriter
```

## Methods

| Method                                                                                                                                                            | Description                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AddBuffer](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/addbuffer.md)                                                       | Records a command to add a dynamic buffer to an entity.                                                                                                                                                                                                                                                                                                                                                                                  |
| [AddComponent](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/addcomponent.md)                                                 | Records a command to add a component to a NativeArray of entities.                                                                                                                                                                                                                                                                                                                                                                       |
| [AddComponentForLinkedEntityGroup](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/addcomponentforlinkedentitygroup.md)         | Records a command that adds a component to an entity's [LinkedEntityGroup](/engine/7000.0/script-reference/unity/entities/linkedentitygroup.md) based on an [EntityQueryMask](/engine/7000.0/script-reference/unity/entities/entityquerymask.md). Entities in the [LinkedEntityGroup](/engine/7000.0/script-reference/unity/entities/linkedentitygroup.md) that don't match the mask will be skipped safely.                             |
| [AddSharedComponent](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/addsharedcomponent.md)                                     | Records a command to add an unmanaged shared component value on a NativeArray of entities.                                                                                                                                                                                                                                                                                                                                               |
| [AppendToBuffer](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/appendtobuffer.md)                                             | Records a command to append a single element to the end of a dynamic buffer component.                                                                                                                                                                                                                                                                                                                                                   |
| [CreateEntity](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/createentity.md)                                                 | Records a command to create an entity with no components.                                                                                                                                                                                                                                                                                                                                                                                |
| [DestroyEntity](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/destroyentity.md)                                               | Records a command to destroy a NativeArray of entities.                                                                                                                                                                                                                                                                                                                                                                                  |
| [Instantiate](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/instantiate.md)                                                   | Records a command to create an entity with specified entity prefab.                                                                                                                                                                                                                                                                                                                                                                      |
| [RemoveComponent](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/removecomponent.md)                                           | Records a command to remove one or more components from a NativeArray of entities.                                                                                                                                                                                                                                                                                                                                                       |
| [ReplaceComponentForLinkedEntityGroup](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/replacecomponentforlinkedentitygroup.md) | Records a command that replaces a component value for an entity's [LinkedEntityGroup](/engine/7000.0/script-reference/unity/entities/linkedentitygroup.md). Entities in the [LinkedEntityGroup](/engine/7000.0/script-reference/unity/entities/linkedentitygroup.md) that don't have the component will be skipped safely.                                                                                                               |
| [SetBuffer](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/setbuffer.md)                                                       | Records a command to set a dynamic buffer on an entity.                                                                                                                                                                                                                                                                                                                                                                                  |
| [SetComponent](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/setcomponent.md)                                                 | Records a command to set a component value on an entity.                                                                                                                                                                                                                                                                                                                                                                                 |
| [SetComponentEnabled](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/setcomponentenabled.md)                                   | Records a command to enable or disable a [ComponentType](/engine/7000.0/script-reference/unity/entities/componenttype.md) on the specified [Entity](/engine/7000.0/script-reference/unity/entities/entity.md). This operation does not cause a structural change, or affect the value of the component. For the purposes of EntityQuery matching, an entity with a disabled component will behave as if it does not have that component. |
| [SetComponentForLinkedEntityGroup](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/setcomponentforlinkedentitygroup.md)         | Records a command that sets a component for an entity's [LinkedEntityGroup](/engine/7000.0/script-reference/unity/entities/linkedentitygroup.md) based on an [EntityQueryMask](/engine/7000.0/script-reference/unity/entities/entityquerymask.md). Entities in the [LinkedEntityGroup](/engine/7000.0/script-reference/unity/entities/linkedentitygroup.md) that don't match the mask will be skipped safely.                            |
| [SetEnabled](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/setenabled.md)                                                     | Records a command to add or remove the [Disabled](/engine/7000.0/script-reference/unity/entities/disabled.md) component. By default EntityQuery does not include entities containing the Disabled component. Enabled entities are processed by systems, disabled entities are not.                                                                                                                                                       |
| [SetName](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/setname.md)                                                           | Records a command to set a name of an entity if Debug Names is enabled.                                                                                                                                                                                                                                                                                                                                                                  |
| [SetSharedComponent](/engine/7000.0/script-reference/unity/entities/entitycommandbuffer/parallelwriter/setsharedcomponent.md)                                     | Records a command to set a shared component value on a NativeArray of entities.                                                                                                                                                                                                                                                                                                                                                          |
