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

Method clearAll

packages/core/src/ECS/Systems/EntityCache.ts:128–132  ·  view source on GitHub ↗

* 清除所有缓存 * * 在系统重置或销毁时调用

()

Source from the content-addressed store, hash-verified

126 * 在系统重置或销毁时调用
127 */
128 public clearAll(): void {
129 this._frameCache = null;
130 this._persistentCache = null;
131 this._trackedEntities.clear();
132 }
133
134 /**
135 * 检查是否有有效的持久缓存

Callers 3

resetEntityTrackingFunction · 0.45
resetFunction · 0.45
disposeFunction · 0.45

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected