Skip to content

Class

GridTargetingService

Generated GDScript class reference for GridPlacement.GridTargetingService.

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.

Scene-free grid targeting service. Makes AStar/grid positioning logic directly unit-testable without a scene tree. Handles: tile-to-world coordinate mapping, closest-valid-tile resolution, AStarGrid2D configuration, and targeting readiness validation. Signal emission (astar_grid_changed) and input handling stay on the hosting Node — the service is pure logic over injectable state. Usage: var service := GridTargetingService.new() service.configure_for_2d(targeting_state, targeting_settings, mode_state, path_manager)

Source: addons/grid_placement/systems/grid_targeting/grid_targeting_service.gd

Syntax

class GridTargetingService extends TargetingServiceContract

Members

NameKindSummary
supported_dimensionsMethod
configure_for_2dMethod
get_tile_from_global_positionMethod
update_astar_gridMethod
validate_readyMethod
get_targeting_issuesMethod
get_runtime_issuesMethod
get_path_managerMethod