Single resolver for the TileMapLayer a terrain paints onto. Both the host targeting/preview path (GridPlacementHost) and the paint service (TerrainPlacementService2D) call this, so a ghost always previews on the same layer its commit will paint. Resolution order: entry TilePlacementEntry.target_layer_name -> palette TerrainPalette.default_target_layer_name -> default map. The resolver never invents a new authority: it reads entry/palette data that the game authored and the maps the session declared in GridTargetingState.maps.
Source: addons/grid_placement/systems/building/terrain/terrain_layer_routing.gd
Syntax
class TerrainLayerRouting extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
resolve | Method | |
wanted | Property | |
terrain | Property |
Tutorials built on Grid Placement
- Godot multiplayer grid placement: one host, four sessions
- Godot 2D grid building system: paint, place, save
- Godot 3D grid building system: the runtime loop
- Godot 4 grid-building plugins: build mode vs editor tools
- 3D room placement in Godot: build rooms and stack storeys
- 3D grid placement in Godot 4: full setup tutorial
- Snap to a TileMap in Godot: 2D grid placement
- How to make a farming system in Godot
- How to snap objects to a 3D grid in Godot