Skip to content

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

Entity.addChild() method

添加子实体

Signature:

typescript
addChild(child: Entity): Entity;

Parameters

Parameter

Type

Description

child

Entity

要添加的子实体

Returns:

Entity

添加的子实体

基于 MIT 许可证发布