API

Function onSceneDispose

  • 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.

    Parameters

    Returns () => void