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

Landscape

Landscape(props): Element | null

Mounts a map by name: ground, sea, scatter, navmesh and daylight, alive as long as this is mounted. It loads the physics wasm on first use, and the map’s file where registerMaps registered it, both under the loading screen, and spawns the ground once both have, so a game played alone with no loading screen loads the wasm only with its first Landscape; the children mount once the ground exists. The engine draws the room stream by default; a scene’s Replicas takes over while mounted.

Parameter Type
props LandscapeProps

Element | null