@modoki/engine / index / disposeActiveGameManagers
Function: disposeActiveGameManagers()
disposeActiveGameManagers(
ctx?):Promise<void>
Dispose every currently-active game-scoped manager. Called by SceneManager when the active game is changing, just before the old world is destroyed (pass that old world via ctx). App- and scene-scoped managers are untouched.
Awaits any in-flight game-manager init first, mirroring disposeActiveSceneManagers, so a manager whose async init is still running is never disposed half-initialized.
Parameters
ctx?
Returns
Promise<void>