Method GetSharedComponentIndex
GetSharedComponentIndex<T>(Entity)
Retrieves the index of the unmanaged shared component for an entity.
Declaration
public int GetSharedComponentIndex<T>(Entity entity) where T : unmanaged, ISharedComponentDataParameters
| Type | Name | Description | 
|---|---|---|
| Entity | entity | The target entity | 
Returns
| Type | Description | 
|---|---|
| int | The index of the target entity's value for the shared component of type  | 
Type Parameters
| Name | Description | 
|---|---|
| T | The type of the unmanaged shared component to look up on the target entity |