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