Skip to content

Home > @esengine/ecs-framework-monorepo > ComponentSparseSet > removeEntity

ComponentSparseSet.removeEntity() method

从组件索引中移除实体

清理实体相关的所有索引数据,保持数据结构的紧凑性。

Signature:

typescript
removeEntity(entity: Entity): void;

Parameters

Parameter

Type

Description

entity

Entity

要移除的实体

Returns:

void

基于 MIT 许可证发布