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

Method clearSystemEntityCaches

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

* 清除所有EntitySystem的实体缓存 * 当实体或组件发生变化时调用

()

Source from the content-addressed store, hash-verified

636 * 当实体或组件发生变化时调用
637 */
638 public clearSystemEntityCaches(): void {
639 for (const system of this.systems) {
640 system.clearEntityCache();
641 }
642 }
643
644 /**
645 * 通知相关系统实体的组件发生了变化

Callers 6

addEntityMethod · 0.95
destroyEntitiesMethod · 0.95
notifyQuerySystemsMethod · 0.45
deserializeMethod · 0.45
enterPrefabEditModeMethod · 0.45

Calls 1

clearEntityCacheMethod · 0.80

Tested by

no test coverage detected