Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

LoadingState

Property Type Description
covered boolean Whether the loading screen covers the game, which the menu waits under: from Game’s mount until the first playable frame, and from a scene change until the new scene’s, unless Game’s sceneChangeScreen is false.
isChanging boolean Whether a change to another scene is under way: from go until the new scene’s first playable frame, measured as the first load’s is. The scene’s draws hold meanwhile while a shader links, so the page keeps answering, whatever covers the change; a game that draws its own cover over a change lifts it once this turns false.
loading boolean Whether three’s loaders have a file in flight or a scene boundary has not drawn yet, as the loop’s last frame read them. True until the first frame, and again once the loop unmounts. Read this rather than drei’s useProgress: a model starts loading in the render that draws it, so a useProgress reader would update in the middle of that render.
mountedScene string | null The active scene once everything under its boundary has committed, so the entities it spawns have spawned. Null until the first scene commits; a scene that suspends on a switch leaves the last name.
ready boolean Whether the first playable frame has drawn: under the loading screen, once its steps are in and the shaders compiled, the frame after half a second of whole frames drawn, none slow, that compiled no new program, or after 2 s of such frames on a device whose every frame is slow. The screen reads 100% and lifts then. It stays true once the screen lifts, turns false at a scene change and true again at the new scene’s first playable frame, and stays false in a game with no screen until its first change.
settled boolean Whether the loading screen’s stages before its shaders have all been in: the chunks landed, the scene mounted and drawn, the room joined and the loaders idle. The screen then waits for the shaders. It stays true once the screen lifts, turns false at a scene change and true again as the change’s stages are in, and stays false in a game with no screen until its first change.
shadersCompiled boolean Whether Game has compiled the scene’s shaders since its last load settled. Under the loading screen, it turns true once settled has.