文档

Unity Engine

Download Unity

Unity Engine

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

TypeIndex to review the TypeInfo for

Returns

Type

Description

TypeInfoReturns 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

TypeInfoThe TypeInfo for the component corresponding to type T.