Method IsDescendantOf
IsDescendantOf(TypeIndex, TypeIndex)
Used to determine if a component inherits from another component type
Declaration
[GenerateTestsForBurstCompatibility]
public static bool IsDescendantOf(TypeIndex typeIndex, TypeIndex baseTypeIndex)
Parameters
Type | Name | Description |
---|---|---|
TypeIndex | typeIndex | Child type to test if it inherits from baseTypeIndex |
TypeIndex | baseTypeIndex | Parent type typeIndex may have inherited from |
Returns
Type | Description |
---|---|
bool | Returns if child is a subclass of the parent component type |