文档

Unity Engine

Unity Engine

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

TypeIndexReturns 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

type

A component type

Returns

Type

Description

TypeIndexReturns the TypeIndex for the corresponding System.Type component type. Otherwise TypeIndex.Null is returned.