Skip to content

Class

GridTargetingSettings

Generated GDScript class reference for GridPlacement.GridTargetingSettings.

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.

Settings for the placement cursor: how it moves, where it may go, and the pathing grid used to limit its range.

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

Syntax

class GridTargetingSettings extends PlacementResource

Members

NameKindSummary
limit_to_adjacentPropertyWhen on, the cursor stays within max_tile_distance tiles of the player character (the PlacementOwner's root). For mouse movement in 2D, restrict_to_map_area must also be on.
max_tile_distancePropertyHow many tiles from the player character the cursor may go, when limit_to_adjacent is on.
restrict_to_map_areaPropertyWhen on, the cursor can only move onto cells that have a tile on the target map. When off, it moves freely and snaps to the grid.
enable_mouse_inputPropertyWhether the 2D cursor follows the mouse.
enable_keyboard_inputPropertyWhether the 2D cursor can be moved with the keyboard. Needs the cursor actions in PlacementActions to exist in the Input Map.
remain_active_in_off_modePropertyWhen on, the 2D cursor keeps following input while placement is off. Useful for level editors or debug tools. When off (default), the cursor stops moving until a mode such as build or move is entered.
manual_recenter_modePropertyWhere the PlacementActions.positioner_center action moves the cursor: the center of the screen or the mouse position.
position_on_enable_policyPropertyWhere the cursor goes when it becomes active: - NONE: stays where it is. - LAST_SHOWN: where it was last shown, else the mouse or screen center. - VIEW_CENTER: the center of the screen. - MOUSE_CURSOR: the mouse position, else the screen center. Where the 2D cursor goes when it becomes active. See RecenterOnEnablePolicy.
hide_on_handledPropertyWhen on, the 2D cursor hides while the mouse is over UI that handles it, such as a button. Only applies when enable_mouse_input is on.
region_sizePropertySize, in cells, of the pathing grid used by limit_to_adjacent.
cell_shapePropertyCell shape of the pathing grid. Match your TileSet.
diagonal_modePropertyWhether pathing can move diagonally.
default_compute_heuristicPropertyHow the pathing grid measures the cost between cells.
default_estimate_heuristicPropertyHow the pathing grid estimates the remaining distance to the target.
get_editor_issuesMethod