Method GetSharedComponentDataIndex
GetSharedComponentDataIndex<T>(Entity)
Retrieves the index of the shared component data value for an entity.
Declaration
[GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[]{typeof(BurstCompatibleSharedComponentData)})]
public int GetSharedComponentDataIndex<T>(Entity entity)
where T : struct, ISharedComponentData
Parameters
Type | Name | Description |
---|---|---|
Entity | entity | The target entity |
Returns
Type | Description |
---|---|
Int32 | 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 |