Documentation

Unity Engine

Download Unity

Unity Engine

SetComponentData<T>(Entity, T)

Sets the value of a component of an entity.
Read time 1 minuteLast updated a day ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static void SetComponentData<T>(Entity entity, T componentData) where T : unmanaged, IComponentData

Parameters

entity

The entity.

componentData

T
The new value.