Skip to content

Class

DemolishData

Generated GDScript class reference for GridPlacement.DemolishData.

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 DEMOLISH action. Carries a live Manipulatable reference for pre-destroy inspection and exposes a veto() hook that listeners can call from the ManipulationState.pre_demolish callback to cancel the demolition. The base ManipulationData.target is also populated (it was historically null on the demolish path) so existing consumers that walk the data shape don't have to special-case demolish. Lifecycle (5.1.0-C): try_demolish: status = STARTED emit pre_demolish(data) # listeners may call data.veto() if data.vetoed: status = CANCELED return root.queue_free() status = FINISHED

Source: addons/grid_placement/systems/manipulation/manipulation_data_demolish.gd

Syntax

class DemolishData extends ManipulationData

Members

NameKindSummary
demolish_targetPropertyLive Manipulatable that will be destroyed if no listener vetoes. This is the same reference that flows through ManipulationData.source but exposed explicitly on the demolish data so listeners can read it without walking the data shape.