Home > @esengine/ecs-framework-monorepo > Entity > isDescendantOf
Entity.isDescendantOf() method
检查是否是指定实体的后代
Signature:
typescript
isDescendantOf(entity: Entity): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
entity | 要检查的实体 |
Returns:
boolean
如果是后代则返回true