Skip to content

Class

PlacementValidator

Generated GDScript class reference for GridPlacement.PlacementValidator.

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.

Runs tests for each rule using RuleCheckIndicators to determine if placement in the targeted location is valid if all rules validate successfully. This is a scene-free validation collaborator. IndicatorManager owns the presentation and setup lifecycle; the validator needs no SceneTree-backed dependency.

Source: addons/grid_placement/placement/placement_rules/placement_validator.gd

Syntax

class PlacementValidator extends RefCounted

Members

NameKindSummary
finishedSignalEmitted when the placement validator is done evaluating a set of rules on a scene node
setup_failedSignalEmitted when the setup failed
active_rulesPropertyDebug settings to pass into rules. Override in resource inspector if desired. Full list of rules being used by the placement validator to test object placement
ISSUE_MATCHING_PRIORITYField
resolve_placement_dependenciesMethod
get_runtime_issuesMethod
validate_placementMethod
validate_placement_fastMethod
setupMethod
get_combined_rulesMethod
tear_downMethod
apply_rulesMethod