Chris' Tutorials
Docs/Grid Placement

Class

PositionerPolicy

Generated GDScript class reference for GridPlacement.PositionerPolicy.

StatusDraft
Versionv6.0
UpdatedDevelopment docs generated from GDScript source

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

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.

Injectable positioning policy for GridPositioner2D. Encapsulates all positioning decisions (visibility, recenter, mouse follow, clamping) as instance methods with injected [member _settings]. Previously these were static methods on [code]GridPositionerLogic[/code]; the class is now [code]PositionerPolicy[/code] (Strategy pattern: different games can inject different policies). Usage: var policy := PositionerPolicy.new() policy.configure(targeting_settings) var decision := policy.recenter_on_enable_decision(has_cache, mouse_ok, vp_ok)

Source: addons/grid_placement/systems/grid_targeting/grid_positioner/grid_position_policy.gd

Syntax

class PositionerPolicy extends RefCounted

Members

NameKindSummary
ProjectionMethodField
RecenterDecisionFieldRecenter-on-enable decision outcomes.
configureMethod
proj_method_to_stringMethod
should_be_visibleMethod
should_be_visible_for_modeMethod
is_positioner_activeMethod
is_mouse_follow_allowedMethod
visibility_decision_traceMethod
mode_valProperty
last_allowedProperty
mouse_enabledProperty
computed_shouldProperty
visibility_on_mouse_eventMethod
resProperty
visibility_on_process_tickMethod
resProperty
visibility_reconcileMethod
resProperty
is_hide_on_handled_activeProperty
last_mouse_blockedProperty
might_be_hidden_by_handledProperty
target_shouldProperty
recenter_on_enable_decisionMethod
policyProperty
get_tile_delta_from_key_eventMethod
moveProperty
get_rotation_direction_from_key_eventMethod

Source

addons/grid_placement/systems/grid_targeting/grid_positioner/grid_position_policy.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs