Method GetSharedComponentIndexManaged
GetSharedComponentIndexManaged<T>(Entity)
Retrieves the index of the managed or unmanaged shared component for an entity.
Declaration
[ExcludeFromBurstCompatTesting("Accesses managed component store")]
public int GetSharedComponentIndexManaged<T>(Entity entity) where T : struct, ISharedComponentData
Parameters
| 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 shared component to look up on the target entity |