Draft — Unreleased:This page is in active development. APIs, class names, and behavior may change before the release is finalized. Use it as a preview of what's coming — not as a stable integration target.
Source: addons/grid_placement/components/manipulatable.gd
Syntax
class Manipulatable extends PlacementGameNodeMembers
| Name | Kind | Summary |
|---|---|---|
keep_during_preview | Field | Component node that makes a object movable, demolishable, or other system actions to be performed on the object Special marker that tells building system to keep this script during preview |
manipulation_finished | Event | Emitted when this object's manipulation is finished (placed/moved) This allows the root object to respond to being manipulated Parameters: - old_transform: Transform2D - The transform before manipulation - new_transform: Transform2D - The transform after manipulation |
settings | Property | Rule settings for replacing this object in move mode, etc |
build_cost_rule | Property | Optional build-cost label for refund-on-demolish: points at the same saved [SpendMaterialsRuleById] resource the placement pipeline spends from, so cost has one source of truth. Lives here (per-object node, not the shared [ManipulatableSettings] resource) because demolishability and refund value are the same concern — an object without a Manipulatable cannot be demolished at all. ScenePlacementEntry-backed scenes can leave this empty: [PlaceableInstance] already resolves their costs. See [method BuildCost.resolve_for] for the precedence order. |
root | Property | The root of the object that should be manipulated by any actions. This manipulatable component is usually a child of the root. |
resolve_placement_dependencies | Method | |
get_logger | Method | |
is_root_hierarchy_valid | Method | |
current | Property | |
create_copy | Method | |
copy | Property | |
copy_manipulatable | Property | |
get_move_rules | Method | |
is_demolishable | Method | |
is_movable | Method | |
validate_setup | Method | |
issues | Property | |
get_issues | Method | |
issues | Property | |
null_issues | Property | |
complete_manipulation | Method | |
new_transform | Property | |
root_2d | Property |
Source
addons/grid_placement/components/manipulatable.gd
Plugin docs root:gdscript/plugins/grid_placement_dev/docs