Loading scene component for Moxi. Shows an animated loading screen during asset loading.
// Via setupMoxi (recommended)const { loadingScene } = await setupMoxi({ showLoadingScene: true, loadingSceneOptions: { backgroundColor: 0x222222, text: 'Please wait...', animation: new FallingSquaresAnimation({ squareSize: 16 }) }});// Manual controlloadingScene.show();await loadAssets([...]);loadingScene.hide(); Copy
// Via setupMoxi (recommended)const { loadingScene } = await setupMoxi({ showLoadingScene: true, loadingSceneOptions: { backgroundColor: 0x222222, text: 'Please wait...', animation: new FallingSquaresAnimation({ squareSize: 16 }) }});// Manual controlloadingScene.show();await loadAssets([...]);loadingScene.hide();
Clean up resources.
Hide the loading scene and stop animation.
Initialize with renderer reference.
PIXI renderer
Show the loading scene and start animation.
Loading scene component for Moxi. Shows an animated loading screen during asset loading.
Example