Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
deserialize
Method · 0.45
Scene.test.ts
File · 0.45
CommandBuffer.test.ts
File · 0.45
bindEvents
Method · 0.45
Calls
2
removeAllEntities
Method · 0.45
setEntities
Method · 0.45
Tested by
no test coverage detected