GetTypeIndex
Fetches the TypeIndex for a given T.
阅读时间1 分钟最后更新于 19 天前
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. |