IsDescendantOf(TypeIndex, TypeIndex)
Used to determine if a component inherits from another component type
阅读时间1 分钟最后更新于 20 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public static bool IsDescendantOf(TypeIndex typeIndex, TypeIndex baseTypeIndex)
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns if child is a subclass of the parent component type |