Skip to content

Class

ModeSwitchBar

Generated GDScript class reference for GridPlacement.ModeSwitchBar.

Status
Current
Version
v6.3.0
Source updated
2026-10-29
Generated on
2026-10-29

6.3. These pages document the 6.3 release, where placeable is now entry (what changed) and PlacementOwner is deprecated (migration). Still on 6.2? Your version's guides ship inside the plugin itself, under addons/grid_placement/guides/; the 6.2 URLs on this site now redirect to this series.

A row of buttons for switching between Info, Build, Move, and Demolish. The buttons work like the mode keys: pressing one enters that mode, and pressing the active one turns placement off. The bar always shows the current mode, even when it was changed with a key. Hovering a button shows the mode's name, key, and what it does.

Source: addons/grid_placement/ui/mode/mode_switch_bar.gd

Syntax

class ModeSwitchBar extends PlacementControl

Members

NameKindSummary
icon_infoPropertyIcon for the Info button.
icon_buildPropertyIcon for the Build button.
icon_movePropertyIcon for the Move button.
icon_demolishPropertyIcon for the Demolish button.
mode_buttonMethod
resolve_placement_dependenciesMethod
resolve_placement_runtimeMethod