GetComponentDataRW<T>(Entity)
Gets a read/write reference to a component of an entity.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static RefRW<T> GetComponentDataRW<T>(Entity entity) where T : unmanaged, IComponentData
Parameters
The entity.
Returns
Type | Description |
|---|---|
| RefRW<T> | A reference to the component, which bumps its change version. |