Skip to content

Home > @esengine/ecs-framework-monorepo > Entity > isDescendantOf

Entity.isDescendantOf() method

检查是否是指定实体的后代

Signature:

typescript
isDescendantOf(entity: Entity): boolean;

Parameters

Parameter

Type

Description

entity

Entity

要检查的实体

Returns:

boolean

如果是后代则返回true

基于 MIT 许可证发布