Skip to content

Class

RuleResult

Generated GDScript class reference for GridPlacement.RuleResult.

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.

Results from placement rule validation. RuleResult encapsulates the outcome of evaluating a placement rule, storing validation issues, success state, and contextual information for debugging and logging. The class supports both incremental construction (for building issues during validation) and complete construction (for finished results). Success is determined by the absence of validation issues, making the result self-documenting and suitable for build logs and user feedback systems.

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

Syntax

class RuleResult extends RefCounted

Members

NameKindSummary
rulePropertyThe rule that was tested.
rule_idPropertyStable id of the rule that produced this result (PlacementRule.get_rule_id()). Empty only when the result was built without a rule.
issuesPropertyIssues found during validation.
success_messagePropertyOptional message describing a pass, such as "Clear to build". The action log shows it when ActionLogSettings.print_success_reasons is on. Ignored when the result has issues.
buildMethod
add_issueMethod
add_issuesMethod
is_successfulMethod
is_emptyMethod
get_issuesMethod