Skip to content

Home > @esengine/ecs-framework-monorepo > EntityManager > getAllEntities

EntityManager.getAllEntities() method

获取所有实体

返回当前管理的所有实体的副本数组。

Signature:

typescript
getAllEntities(): Entity[];

Returns:

Entity[]

所有实体的数组

基于 MIT 许可证发布