Documentation

Unity Engine


Unity Engine


GetTypeIndex

Fetches the TypeIndex for a given T.
Read time 1 minuteLast updated 3 days ago

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.