SetComponentData<T>(Entity, T)
Sets the value of a component of an entity.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public void SetComponentData<T>(Entity entity, T componentData) where T : unmanaged, IComponentData
Parameters
The entity whose component should be modified.
TRemarks
The target entity must exist, and it must have the target component.