Skip to content

Class

PositionerUIPolicy

Generated GDScript class reference for GridPlacement.PositionerUIPolicy.

Status
Current
Version
v6.1.0
Source updated
2026-09-24
Generated on
2026-09-23

Decides whether a pointer press lands on UI and must not become a world click. Production positioners raycast in _input, which runs before the GUI consumes the event; without this check a catalog click whose ray hits a cell would emit a world click (spurious placement plus action-log failure lines). The live answer comes from the viewport hover state. Games whose UI never drives viewport hover inject a custom policy, and headless tests (hover needs a display) inject a stub.

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

Syntax

class PositionerUIPolicy extends RefCounted

Members

NameKindSummary
is_over_uiMethod