Documentation

Unity Engine


Unity Engine


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

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.