Skip to content

Class

PositionerUIPolicy

Generated GDScript class reference for GridPlacement.PositionerUIPolicy.

Status
Draft
Version
v6.0
Updated
Development docs generated from GDScript source

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

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