| Parameter | Description |
|---|---|
| entityQuery | The query specifying which entities to add the component value to. |
| component | The component value to add. |
| queryCaptureMode | Controls when the entities matching entityQuery are computed and captured. |
Records a command to add a unmanaged shared component to all entities matching a query.
Entities which already have the component type will have the component set to the value.
| Parameter | Description |
|---|---|
| entityQuery | The query specifying the entities to which the component is added. |
| component | The component value to add. |
Obsolete. Use EntityCommandBuffer.AddSharedComponent instead.
| Parameter | Description |
|---|---|
| e | The entity to add the shared component value to. |
| sharedComponent | The shared component value to add. |
Records a command to add an unmanaged shared component value on an entity.
At playback, this command throws an error if this entity is destroyed before playback, if adding this shared component exceeds the maximum number of shared components, or adding a component type makes the archetype too large.
| Parameter | Description |
|---|---|
| entities | The NativeArray of entities to add the shared component value to. |
| sharedComponent | The shared component value to add. |
Records a command to add an unmanaged shared component value on a NativeArray of entities.
At playback, this command throws an error if any entity is destroyed before playback, if adding this shared component exceeds the maximum number of shared components, or adding a component type makes the archetype too large.