Skip to content

GridPositioner2D

Controls the position for interactions on the building system and selects targets from objects under the positioner ShapeCast2D for the BuildingState

Required on a per composition container basis

mouse_handled = true

Logger injected from composition container for verbose/debug output

The state pf the BuildingSystem holding a reference to this positioner.

_ready( )
resolve_gb_dependencies( p_config: GBCompositionContainer ) -> void
remove_self_as_positioner( )

Removes this object from being set to the _targeting_state.positioner property

update_visibility( )

Remove self from being the state positioner

Uses whether the mouse movement was consumed by UI to determine if the positioner and child objects should be visible or invisible. Only called when hide_on_handled is true

set_dependencies( p_states: GBStates, config: GBConfig )

Dependency injection function

get_runtime_issues( ) -> Array[String]

Checks if the properties of the GridPositioner2D are set properly during gameplay. Returns validation issues if dependencies are missing, empty array if valid.

return: Array[String] - List of validation issues (empty if valid)

addons/grid_building/systems/grid_targeting/grid_positioner/grid_positioner_2d.gd


This page was auto-generated from GDScript source. Edit the source file to improve documentation.

Generated on 2025-09-07