The build-mode panel where players pick what to place: the object catalog and, optionally, the terrain palette, with tabs to switch between them.
Source: addons/grid_placement/ui/placement_panel/placement_panel.gd
Syntax
class PlacementPanel extends PanelContainerMembers
| Name | Kind | Summary |
|---|---|---|
enable_terrain_palette | Property | When on, the panel has Objects and Terrain tabs. When off, it shows only the object catalog. |
startup_route | Property | Which tab the panel opens on: - OBJECTS or TERRAIN: always that tab. - LAST_REMEMBERED: the tab used last time (saved in user://), or OBJECTS the first time. - SELECTION_REQUIRED: neither, until the player picks a tab. Which tab the panel opens on. See StartupRoute. |
place_router_ui | Property | The Objects/Terrain tabs. |
scene_entry_selection_ui | Property | The object catalog panel. |
terrain_palette_ui | Property | The terrain palette (used only when enable_terrain_palette is on). |
min_width | Property | Minimum panel width in pixels. |
max_width | Property | Maximum panel width in pixels. |
width_ratio | Property | Panel width as a share of the screen width, kept between min_width and max_width. |
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