GetTypeIndex
Fetches the TypeIndex for a given T.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetTypeIndex<T>()
Fetches the TypeIndex for a given T.
public static TypeIndex GetTypeIndex<T>()
Returns
Type | Description |
|---|---|
| TypeIndex | Returns the TypeIndex for the corresponding T component type. Otherwise TypeIndex.Null is returned. |
GetTypeIndex(Type)
Fetches the TypeIndex for a given System.Type.
public static TypeIndex GetTypeIndex(Type type)
Parameters
A component type
Returns
Type | Description |
|---|---|
| TypeIndex | Returns the TypeIndex for the corresponding System.Type component type. Otherwise TypeIndex.Null is returned. |