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

MapObjectBuildResult

MapObjectBuildResult = Pick<PrefabOptions, "traits"> & BodyDeclaration & object

What a map object’s build returns: what its entity stands with in the room, headless and on every page, as a prefab declares it.

Name Type Description
approachPoint? Triple | null Where a character stands to reach it, at its feet, in its own metres as its view draws: a house’s door step, which the map builder’s ready-to-play check walks to. null where nothing walks to it, such as a tree in a fenced wood. Left out, any side of its bounds a character can stand at, as Unity’s NavMesh.SamplePosition and Godot’s map_get_closest_point find a point near it.
bounds MapObjectBounds -