A toggle button that sends an input action, such as entering build mode, and shows as pressed while its mode is active. Turn on Toggle Mode.
Source: addons/grid_placement/ui/actions/placement_action_button.gd
Syntax
class PlacementActionButton extends PlacementButtonMembers
| Name | Kind | Summary |
|---|---|---|
press_action | Property | Input action sent when the button is pressed. Must exist in the Input Map. |
represented_mode | Property | The button shows as pressed while this mode is active. |
get_mode_state | Method | |
set_mode_state | Method | |
resolve_placement_dependencies | Method | |
get_runtime_issues | 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