Documentation

Unity Engine


Unity Engine


AddComponentForEntityQuery

Obsolete. Use EntityCommandBuffer.AddComponent instead.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

AddComponentForEntityQuery(EntityQuery, ComponentType)

Obsolete. Use EntityCommandBuffer.AddComponent instead.
Warning
Deprecated. Use AddComponent (RemovedAfter Entities 1.0)
public void AddComponentForEntityQuery(EntityQuery entityQuery, ComponentType componentType)

Parameters

entityQuery

The query specifying the entities to which the component is added.

componentType

The type of component to add.

AddComponentForEntityQuery<T>(EntityQuery)

Obsolete. Use EntityCommandBuffer.AddComponent instead.
Warning
Deprecated. Use AddComponent (RemovedAfter Entities 1.0)
public void AddComponentForEntityQuery<T>(EntityQuery entityQuery)

Parameters

entityQuery

The query specifying the entities to which the component is added.

AddComponentForEntityQuery<T>(EntityQuery, T)

Obsolete. Use EntityCommandBuffer.AddComponent instead.
Warning
Deprecated. Use AddComponent (RemovedAfter Entities 1.0)
public void AddComponentForEntityQuery<T>(EntityQuery entityQuery, T value) where T : unmanaged, IComponentData

Parameters

entityQuery

The query specifying the entities to which the component is added.

value

T
The value to set on the new component in playback for all entities matching the query.

AddComponentForEntityQuery(EntityQuery, ComponentTypeSet)

Obsolete. Use EntityCommandBuffer.AddComponent instead.
Warning
Deprecated. Use AddComponent (RemovedAfter Entities 1.0)
public void AddComponentForEntityQuery(EntityQuery entityQuery, in ComponentTypeSet componentTypeSet)

Parameters

entityQuery

The query specifying the entities to which the components are added.

componentTypeSet

The types of components to add.