| 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 set an unmanaged shared component value on all entities matching a query.
Fails if any of the entities do not have the type of shared component. [todo: should it be required that the component type is included in the query?]
| Parameter | Description |
|---|---|
| entityQuery | The query specifying the entities to which the component is added. |
| component | The component value to set. |
Obsolete. Use EntityCommandBuffer.SetSharedComponent instead.
| Parameter | Description |
|---|---|
| e | The entity to set the shared component value of. |
| sharedComponent | The shared component value to set. |
Records a command to set an unmanaged shared component value on an entity.
At playback, this command throws an error if this entity is destroyed before playback, if the entity has the Prefab tag, or if the entity doesn't have the shared component type.
| Parameter | Description |
|---|---|
| entities | The NativeArray of entities to set the shared component value of. |
| sharedComponent | The shared component value to set. |
Records a command to set 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 any entity has the Prefab tag, or if any entity doesn't have the shared component type.