GetSharedComponentDataIndex<T>(Entity)
Retrieves the index of the unmanaged shared component data value for an entity.
Read time 1 minuteLast updated a day ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public int GetSharedComponentDataIndex<T>(Entity entity) where T : unmanaged, ISharedComponentData
Parameters
The target entity
Returns
Type | Description |
|---|---|
| int | The index of the target entity's value for the shared component of type |