Skip to content

Class

TerrainPaintData

Generated GDScript class reference for GridPlacement.TerrainPaintData.

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.

Specialized ManipulationData for the TERRAIN action. Carries the terrain name, resolved terrain set/terrain, target cell, and target map for painting operations. Exposes a veto() hook that listeners can call from the PlacementState.pre_terrain_paint callback to cancel the paint. Lifecycle (5.1.0-G): try_place_terrain_by_name: status = STARTED emit pre_terrain_paint(data) # listeners may call data.veto() if data.vetoed: status = CANCELED return apply_plan() status = FINISHED

Source: addons/grid_placement/placement/terrain/terrain_paint_data.gd

Syntax

class TerrainPaintData extends ManipulationData

Members

NameKindSummary
terrain_namePropertyThe terrain name to be painted (e.g. "dungeon_floor"). This is the single source of truth for terrain identification.
terrain_setPropertyThe resolved terrain set index from the TileSet.
terrainPropertyThe resolved terrain index within the terrain set.
terrain_cellPropertyThe grid cell where the terrain will be painted. This enables per-cell cost deduction, undo journaling, and effects.
target_mapPropertyThe TileMapLayer where the terrain will be painted.