* 完全重置实体跟踪状态 * 清除所有缓存和跟踪的实体,强制下次 update 时重新扫描所有实体并触发 onAdded * 用于场景重载/预览重置等场景
()
| 482 | * 用于场景重载/预览重置等场景 |
| 483 | */ |
| 484 | public resetEntityTracking(): void { |
| 485 | this._entityCache.clearAll(); |
| 486 | this._entityIdMap = null; |
| 487 | this._entityIdMapVersion = -1; |
| 488 | } |
| 489 | |
| 490 | /** |
| 491 | * 重置系统状态 |