Carries the currently-selected terrain for one brush stroke: its name, the TilePlacementEntry to paint, and the TerrainPalette it came from. A null/empty context (is_empty() == true) means no terrain is selected.
Source: addons/grid_placement/systems/building/terrain/terrain_brush_context.gd
Syntax
class TerrainBrushContext extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
terrain_name | Property | |
terrain_entry | Property | |
terrain_palette | Property | |
clear | Method | |
is_empty | Method |
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