Shared single/line/rectangle/fill brush selector for the placement panel. One row of shape buttons used by BOTH routes: terrain shapes in Terrain route, the visible category's defaults or selected scene_entry's resolved tools in Objects route. Shows itself only when there is a choice (more than one shape) in a placement mode; otherwise it hides so single-tool selections keep a clean panel. Lives inside the PlaceRouterUI hotbar template, which binds it via bind_router().
Source: addons/grid_placement/ui/brush/brush_shape_bar.gd
Syntax
class BrushShapeBar extends PlacementControlMembers
| Name | Kind | Summary |
|---|---|---|
SHAPE_ICON_BUTTON | Field | Authored in ui/shared/shape_icon_button.tscn: 36x36 icon button, GPIconButton variation, centred scaled icon. Only icon, tooltip and handler are set here. |
canonical_tool_order | Method | |
bind_router | Method | |
resolve_placement_dependencies | Method | |
resolve_placement_runtime | Method | |
sync_shapes | Method | |
available_shapes | Method |
Guides that use this class
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