Skip to content

Class

ManipulationParent

Generated GDScript class reference for GridPlacement.ManipulationParent.

Status
Draft
Version
v6.0
Updated
Development docs generated from GDScript source

This is unreleased documentation in active development. APIs, class names, and behavior may change before the final release.

Transform container for preview objects during manipulation. Applies rotation and scale; children inherit the transform through the scene tree. This is the canonical transform parent used by GridPositioner2D and the GridPlacementHost pattern. 2D rule indicators stay axis-aligned: IndicatorManager keeps per-cell overlays free of this parent's transform so overlay art stays readable while the preview object itself inherits it (or frame-swaps). Isometric placement guides and docs/systems/parent_node_architecture.md cover parenting decisions.

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

Syntax

class ManipulationParent extends PlacementNode2D

Members

NameKindSummary
rotatedSignalEmitted after a rotation transform is applied, for every rotation path (grid clockwise/counter-clockwise and [method apply_rotation]), from both input-driven and programmatic ([ManipulationService2D]) callers. Consumers may swap a directional sprite instead of spinning the texture; that choice is entirely theirs (see the manipulation guide). [param new_rotation_degrees] Resulting [member Node2D.global_rotation_degrees]. [param cardinal] Best-effort nearest cardinal facing; most meaningful for 90-degree grid increments.
flippedSignalEmitted after a flip transform is applied. One signal for both axes; branch on [param axis] ([enum PlacementEnums.FlipAxis]). Mirrors the signal-consolidation direction of [signal ManipulationState.action_performed].
set_hostMethod
resolve_placement_runtimeMethod
resetMethod
get_logical_rotation_degreesMethod
restore_logical_rotation_degreesMethod
get_cardinalMethod
is_flipped_horizontallyMethod
is_flipped_verticallyMethod
apply_rotationMethod
apply_grid_rotation_clockwiseMethod
apply_grid_rotation_counter_clockwiseMethod
apply_horizontal_flipMethod
apply_vertical_flipMethod
is_rotation_transform_disabledMethod
handle_transform_inputMethod
stepProperty
target_mapProperty
resolve_placement_dependenciesMethod
get_runtime_issuesMethod