Documentation

Unity Engine


Unity Engine


ReplaceComponentForLinkedEntityGroup<T>(Entity, T)

Records a command that replaces a component value for an entity's LinkedEntityGroup. Entities in the LinkedEntityGroup that don't have the component will be skipped safely.
Read time 1 minuteLast updated 3 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public void ReplaceComponentForLinkedEntityGroup<T>(Entity e, T component) where T : unmanaged, IComponentData

Parameters

The entity whose LinkedEntityGroup will be referenced.

component

T
The component value to set.

Remarks

At playback, this command throws an error if the entity is destroyed before playback.