Skip to content

Class

PlacementEnums

Generated GDScript class reference for GridPlacement.PlacementEnums.

Status
Current
Version
v6.1.0
Source updated
2026-09-24
Generated on
2026-09-23

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 PlacementEnums

Members

NameKindSummary
is_placement_modeMethod
mode_to_stringMethod
projection_method_to_stringMethod
PREVIEWFieldCoordinate 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 [code]Node.set_meta()[/code]. 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.