| Parameter | Description |
|---|---|
| e | The entity to have the component removed. |
Records a command to remove component of type T from an entity.
At playback, it's not an error if the entity doesn't have component T. Will throw an error if this entity is destroyed before playback, or if T is type Entity or Prefab.
| Parameter | Description |
|---|---|
| entities | The NativeArray of entities to have the component removed. |
Records a command to remove component of type T from a NativeArray of entities.
At playback, it's not an error if any entity doesn't have component T. Will throw an error if one of these entities is destroyed before playback, or if T is type Entity or Prefab.
| Parameter | Description |
|---|---|
| e | The entity to have the component removed. |
| componentType | The type of component to remove. |
Records a command to remove a component from an entity.
At playback, it's not an error if the entity doesn't have the component type. Will throw an error if this entity is destroyed before playback, or if the component type is Entity or Prefab.
| Parameter | Description |
|---|---|
| entities | The NativeArray of entities to have the component removed. |
| componentType | The type of component to remove. |
Records a command to remove one or more components from a NativeArray of entities.
At playback, it's not an error if any entity doesn't have the component type. Will throw an error if one of these entities is destroyed before playback, or if the component type is Entity or Prefab.
| Parameter | Description |
|---|---|
| e | The entity to have components removed. |
| componentTypeSet | The types of components to remove. |
Records a command to remove one or more components from an entity.
At playback, it's not an error if the entity doesn't have one of the component types. Will throw an error if this entity is destroyed before playback, or if any of the component types are Entity or Prefab.
| Parameter | Description |
|---|---|
| entities | The NativeArray of entities to have components removed. |
| componentTypeSet | The types of components to remove. |
Records a command to remove one or more components from a NativeArray of entities.
At playback, it's not an error if any entity doesn't have one of the component types. Will throw an error if one of these entities is destroyed before playback, or if any of the component types are Entity or Prefab.
| Parameter | Description |
|---|---|
| entityQuery | The query specifying the entities from which the component is removed. |
| componentType | The types of component to remove. |
| queryCaptureMode | Controls when the entities matching entityQuery are computed and captured. |
Records a command to remove a component from all entities matching a query.
Does not affect entities already missing the component.
| Parameter | Description |
|---|---|
| entityQuery | The query specifying the entities to which the component is added. |
| componentType | The type of component to add. |
Obsolete. Use EntityCommandBuffer.RemoveComponent instead.
| Parameter | Description |
|---|---|
| entityQuery | The query specifying the entities from which the component is removed. |
| queryCaptureMode | Controls when the entities matching entityQuery are computed and captured. |
Records a command to remove a component from all entities matching a query.
Does not affect entities already missing the component.
| Parameter | Description |
|---|---|
| entityQuery | The query specifying the entities to which the component is added. |
Obsolete. Use EntityCommandBuffer.RemoveComponent instead.
| Parameter | Description |
|---|---|
| entityQuery | The query specifying the entities from which the components are removed. |
| componentTypeSet | The types of components to remove. |
| queryCaptureMode | Controls when the entities matching entityQuery are computed and captured. |
Records a command to remove multiple components from all entities matching a query.
The set of entities matching the query is 'captured' in the method call, and the recorded command stores an array of all these entities.
Some matching entities may already be missing some or all of the specified components. After this operation, all matching entities will have none of the components.
At playback, this command throws an error if one of these entities is destroyed before playback. (With safety checks enabled, an exception is thrown. Without safety checks,
playback will perform invalid and unsafe memory access.)
| Parameter | Description |
|---|---|
| entityQuery | The query specifying the entities from which the components are removed. |
| componentTypeSet | The types of components to remove. |
Obsolete. Use EntityCommandBuffer.RemoveComponent instead.