| Parameter | Description |
|---|---|
| entity | The Entity. |
| componentType | The type of component to add. |
bool If the component was successfully added to the entity.
Adds a component to an entity.
Can add any kind of component except chunk components. For chunk
components, use EntityManager.AddChunkComponentData.
Adding a component changes the entity's archetype and results in the entity being moved to a different
chunk.
The added component has the default values for the type.
If the Entity object refers to an entity that already has the specified ComponentType,
the function returns false without performing any modifications.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before adding 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 add. |
bool If the component was successfully added to the entity.
Adds a component to an entity associated with a system.
Can add any kind of component except chunk components. For chunk
components, use EntityManager.AddChunkComponentData.
Adding a component changes the entity's archetype and results in the entity being moved to a different
chunk.
The added component has the default values for the type.
If the Entity object refers to an entity that already has the specified ComponentType,
the function returns false without performing any modifications.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before adding 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 If the component was successfully added to the entity.
Adds a component to an entity.
Can add any kind of component except chunk components. For chunk
components, use EntityManager.AddChunkComponentData.
Adding a component changes the entity's archetype and results in the entity being moved to a different
chunk.
The added component has the default values for the type.
If the Entity object refers to an entity that already has the specified ComponentType,
the function returns false without performing any modifications.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before addting 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 If the component was successfully added to the entity.
Adds a component to an entity associated with a system.
Can add any kind of component except chunk components. For chunk
components, use EntityManager.AddChunkComponentData.
Adding a component changes the entity's archetype and results in the entity being moved to a different
chunk.
The added component has the default values for the type.
If the Entity object refers to an entity that already has the specified ComponentType,
the function returns false without performing any modifications.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before addting 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 add. |
Adds a component to a set of entities defined by a EntityQuery.
Can add any kind of component.
Adding a component changes an entity's archetype and results in the entity being moved to a different
chunk.
The added components have the default values for the type.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before addting 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 type of components to add. |
Adds components to a set of entities defined by a EntityQuery.
You can use this method to add a component to an Entity.
The added components have the default values for the type.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before addting 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. |
Adds a component to a set of entities defined by a EntityQuery.
Can add any kind of component except chunk components.
Adding a component changes an entity's archetype and results in the entity being moved to a different
chunk.
The added components have the default values for the type.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before adding 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 add. |
Adds a component to a set of entities.
Can add any kind of component except chunk components.
Adding a component changes an entity's archetype and results in the entity being moved to a different
chunk.
The added components have the default values for the type.
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 |
|---|---|
| entities | The collection of entities to modify. |
| componentTypeSet | The type of components to add. |
Adds components to a specified collection of entities.
You can use this method to add a component to an Entity.
The added components have the default values for the type.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before adding 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. |
Adds a component to a set of entities.
Can add any kind of component.
Adding a component changes an entity's archetype and results in the entity being moved to a different
chunk.
The added components have the default values for the type.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before adding 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. |
| componentTypeSet | The types of components to add. |
Adds a set of component to an entity associated with a system.
You can use this method to add a component to an Entity.
Adding components changes the entity's archetype and results in the entity being moved to a different
chunk.
The added components have the default values for the type.
If the Entity object refers to an entity that has been destroyed, this function throws an InvalidOperationException
exception.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before setting 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 add. |
Adds a set of component to an entity.
You can use this method to add a component to an Entity.
Adding components changes the entity's archetype and results in the entity being moved to a different
chunk.
The added components have the default values for the type.
If the Entity object refers to an entity that has been destroyed, this function throws an InvalidOperationException
exception.
Important: This method creates a sync point, which means that the EntityManager waits for all
currently running jobs to complete before adding 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.