Skip to content

Home > @esengine/ecs-framework-monorepo > EntityList > forEach

EntityList.forEach() method

批量操作:对所有实体执行指定操作

Signature:

typescript
forEach(action: (entity: Entity) => void): void;

Parameters

Parameter

Type

Description

action

(entity: Entity) => void

要执行的操作

Returns:

void

基于 MIT 许可证发布