| Parameter | Description |
|---|---|
| entities | The collection of entities to modify. |
| componentTypeSet | The types of components to remove. |
Removes multiple components from a specified colleciton of entities.
You can use this method to remove a component from an Entity
It's OK if some or all of the components to remove are already missing from the entity.
Removing components changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| entities | An array of Entity objects. |
| componentType | The type of component to remove. |
Remove a component from a set of entities.
Can remove any kind of component.
Removing a component changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before creating the chunk. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| entity | The entity to modify. |
| componentType | The type of component to remove. |
bool True if the component was removed successfully.
Removes a component from an entity.
Can remove any kind of component.
Returns false if the entity already does not have the specified component, or if the entity does not exist.
Removing a component changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| system | The system handle. |
| componentType | The type of component to remove. |
bool True if the component was removed successfully.
Removes a component from an entity associated with a system.
Can remove any kind of component.
Returns false if the entity already does not have the specified component, or if the entity does not exist.
Removing a component changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| entity | The entity to modify. |
| componentTypeSet | The types of components to remove. |
Removes multiple components from an entity.
You can use this method to remove a component from an Entity
It's OK if some or all of the components to remove are already missing from the entity, or if the target
entity does not exist.
Removing components changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| entityQuery | The EntityQuery defining the entities to modify. |
| componentType | The type of component to remove. |
Removes a component from a set of entities defined by an EntityQuery.
Can remove any kind of component.
It's OK if some or all of the components to remove are already missing from some or all of the entities.
Removing a component changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| entityQuery | The EntityQuery defining the entities to modify. |
| componentTypeSet | The types of components to add. |
Removes a set of components from a set of entities defined by an EntityQuery.
You can use this method to remove a component from an Entity
It's OK if some or all of the components to remove are already missing from some or all of the entities.
Removing a component changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| entity | The entity. |
bool True if the component was removed successfully.
Removes a component from an entity.
Can remove any kind of component except chunk components.
Returns false if the entity was already missing the component.
Removing a component changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| system | The system handle. |
bool True if the component was removed successfully.
Removes a component from an entity associated with a system.
Can remove any kind of component except chunk components.
Returns false if the entity was already missing the component.
Removing a component changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| entityQuery | The EntityQuery defining the entities to modify. |
Removes a component from a set of entities defined by a EntityQuery.
Can remove any kind of component except chunk components.
It's OK if the component to remove is already missing from some or all of the entities.
Removing a component changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.
| Parameter | Description |
|---|---|
| entities | An array identifying the entities to modify. |
Removes a component from a set of entities.
Can remove any kind of component except chunk components.
It's OK if the component to remove is already missing from some or all of the entities.
Removing a component changes an entity's archetype and results in the entity being moved to a different
chunk.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before removing the component. No additional jobs can start before
the method is finished. A sync point can cause a drop in performance because the ECS framework might not
be able to use the processing power of all available cores.