Skip to content

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

Entity.findChild() method

根据名称查找子实体

Signature:

typescript
findChild(name: string, recursive?: boolean): Entity | null;

Parameters

Parameter

Type

Description

name

string

子实体名称

recursive

boolean

(Optional) 是否递归查找

Returns:

Entity | null

找到的子实体或null

基于 MIT 许可证发布