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

Function resetEntityTracking

packages/core/src/ECS/Systems/EntitySystem.ts:484–488  ·  view source on GitHub ↗

* 完全重置实体跟踪状态 * 清除所有缓存和跟踪的实体,强制下次 update 时重新扫描所有实体并触发 onAdded * 用于场景重载/预览重置等场景

()

Source from the content-addressed store, hash-verified

482 * 用于场景重载/预览重置等场景
483 */
484 public resetEntityTracking(): void {
485 this._entityCache.clearAll();
486 this._entityIdMap = null;
487 this._entityIdMapVersion = -1;
488 }
489
490 /**
491 * 重置系统状态

Callers

nothing calls this directly

Calls 1

clearAllMethod · 0.45

Tested by

no test coverage detected