MCPcopy Create free account
hub / github.com/esengine/esengine / destroyAllEntities

Method destroyAllEntities

packages/core/src/ECS/Scene.ts:849–853  ·  view source on GitHub ↗

* 从场景中删除所有实体

()

Source from the content-addressed store, hash-verified

847 * 从场景中删除所有实体
848 */
849 public destroyAllEntities() {
850 this.entities.removeAllEntities();
851
852 this.querySystem.setEntities([]);
853 }
854
855 /**
856 * 搜索并返回第一个具有名称的实体

Callers 4

deserializeMethod · 0.45
Scene.test.tsFile · 0.45
bindEventsMethod · 0.45

Calls 2

removeAllEntitiesMethod · 0.45
setEntitiesMethod · 0.45

Tested by

no test coverage detected