GetTypeInfo
Retrieve the TypeInfo for the TypeIndex.
阅读时间1 分钟最后更新于 19 天前
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. |