Centralized enums used across the Grid Building plugin. Collects shared enum types (modes, actions, statuses, tile types) used by systems, UI, and tests.
Source: addons/grid_placement/placement_enums.gd
Syntax
class PlacementEnumsMembers
| Name | Kind | Summary |
|---|---|---|
is_placement_mode | Method | |
mode_to_string | Method | |
projection_method_to_string | Method | |
PREVIEW | Field | Coordinate mode for placement targeting. GRID snaps to cell centers (default). SMOOTH uses exact world positions. Metadata keys used by PlacementSession / PlacementStates / preview factories to attach information to scene-tree nodes via Node.set_meta(). Centralizing the keys here is the single source of truth for cross-module meta key usage. Marks a node as a placement preview (terrain preview, drag preview, indicator preview, etc.). Read by the demo world loader to skip preview nodes during save/load and by indicator cleanup paths to free preview-owned collision shapes. |
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