Ghost preview for terrain painting: shows the selected terrain's tile at the hovered cell while the placement system is in TERRAIN mode. Implemented as a one-cell TileMapLayer that mirrors the target map's TileSet and global transform, so square and isometric layouts render identically to the real paint result. The ghost look comes from [member preview_self_modulate] (default: subtle ghost blue). Add one under World; [GridPlacementHost.bind_scene_consumers] binds it. It tracks the positioner each frame while visible and repaints only when the hovered cell or selected terrain changes.
Source: addons/grid_placement/systems/building/terrain/terrain_preview.gd
Syntax
class TerrainPreview extends PlacementNode2DMembers
| Name | Kind | Summary |
|---|---|---|
preview_self_modulate | Property | Ghost tint applied to the preview layer (self_modulate so child nodes, if any are ever added, keep their own colors). |
resolve_placement_dependencies | Method | |
resolve_placement_runtime | Method | |
refresh_now | Method | |
request_refresh | Method | |
sync_active_state | Method |