Register a callback to run when disposeScene is called. Used to tie user-owned resources to the scene's lifetime. The returned callback removes only this registration and is idempotent.
disposeScene
Register a callback to run when
disposeSceneis called. Used to tie user-owned resources to the scene's lifetime. The returned callback removes only this registration and is idempotent.