ドキュメント

Unity Engine

Download Unity

Unity Engine

IsDescendantOf(TypeIndex, TypeIndex)

Used to determine if a component inherits from another component type
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule
public static bool IsDescendantOf(TypeIndex typeIndex, TypeIndex baseTypeIndex)

Parameters

typeIndex

Child type to test if it inherits from baseTypeIndex

baseTypeIndex

Parent type typeIndex may have inherited from

Returns

Type

Description

boolReturns if child is a subclass of the parent component type