GetComponentData<T>(Entity)
Gets the value of a component for an entity.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static T GetComponentData<T>(Entity entity) where T : unmanaged, IComponentData
Parameters
The entity.
Returns
Type | Description |
|---|---|
| T | The component value. |