GetTypeInfo
Retrieve the TypeInfo for the TypeIndex.
Read time 1 minuteLast updated 3 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
GetTypeInfo(TypeIndex)
Retrieve the TypeInfo for the TypeIndex.
public static ref readonly TypeManager.TypeInfo GetTypeInfo(TypeIndex typeIndex)
Parameters
TypeIndex to review the TypeInfo for
Returns
Type | Description |
|---|---|
| TypeInfo | Returns the TypeInfo for the component corresponding to the TypeInfo. |
GetTypeInfo<T>()
Retrieve the TypeInfo for the component T.
public static ref readonly TypeManager.TypeInfo GetTypeInfo<T>()
Returns
Type | Description |
|---|---|
| TypeInfo | The TypeInfo for the component corresponding to type T. |