Method AddComponentForEntityQuery
AddComponentForEntityQuery(EntityQuery, ComponentType)
Obsolete. Use AddComponent(EntityQuery, ComponentType, EntityQueryCaptureMode) instead.
Declaration
[Obsolete("Use AddComponent (RemovedAfter Entities 1.0) (UnityUpgradable) -> AddComponent(*)")]
public void AddComponentForEntityQuery(EntityQuery entityQuery, ComponentType componentType)Parameters
| Type | Name | Description | 
|---|---|---|
| EntityQuery | entityQuery | The query specifying the entities to which the component is added. | 
| ComponentType | componentType | The type of component to add. | 
AddComponentForEntityQuery<T>(EntityQuery)
Obsolete. Use AddComponent<T>(EntityQuery, EntityQueryCaptureMode) instead.
Declaration
[Obsolete("Use AddComponent (RemovedAfter Entities 1.0) (UnityUpgradable) -> AddComponent<T>(*)")]
public void AddComponentForEntityQuery<T>(EntityQuery entityQuery)Parameters
| Type | Name | Description | 
|---|---|---|
| EntityQuery | entityQuery | The query specifying the entities to which the component is added. | 
Type Parameters
| Name | Description | 
|---|---|
| T | The type of component to add. | 
AddComponentForEntityQuery<T>(EntityQuery, T)
Obsolete. Use AddComponent<T>(EntityQuery, T) instead.
Declaration
[Obsolete("Use AddComponent (RemovedAfter Entities 1.0) (UnityUpgradable) -> AddComponent<T>(*)")]
public void AddComponentForEntityQuery<T>(EntityQuery entityQuery, T value) where T : unmanaged, IComponentDataParameters
| Type | Name | Description | 
|---|---|---|
| EntityQuery | entityQuery | The query specifying the entities to which the component is added. | 
| T | value | The value to set on the new component in playback for all entities matching the query. | 
Type Parameters
| Name | Description | 
|---|---|
| T | The type of component to add. | 
AddComponentForEntityQuery(EntityQuery, in ComponentTypeSet)
Obsolete. Use AddComponent(EntityQuery, in ComponentTypeSet, EntityQueryCaptureMode) instead.
Declaration
[Obsolete("Use AddComponent (RemovedAfter Entities 1.0) (UnityUpgradable) -> AddComponent(*)")]
public void AddComponentForEntityQuery(EntityQuery entityQuery, in ComponentTypeSet componentTypeSet)Parameters
| Type | Name | Description | 
|---|---|---|
| EntityQuery | entityQuery | The query specifying the entities to which the components are added. | 
| ComponentTypeSet | componentTypeSet | The types of components to add. |