Skip to content

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

ComponentSparseSet.forEach() method

遍历所有实体

Signature:

typescript
forEach(callback: (entity: Entity, mask: BitMask64Data, index: number) => void): void;

Parameters

Parameter

Type

Description

callback

(entity: Entity, mask: BitMask64Data, index: number) => void

遍历回调函数

Returns:

void

基于 MIT 许可证发布