Skip to content

Home > @esengine/ecs-framework-monorepo > ComponentStorage > removeComponent

ComponentStorage.removeComponent() method

移除组件

Signature:

typescript
removeComponent(entityId: number): T | null;

Parameters

Parameter

Type

Description

entityId

number

实体ID

Returns:

T | null

被移除的组件或null

基于 MIT 许可证发布