Chris' Tutorials
Docs/Grid Placement

Class

RuleCheckIndicator2D

Generated GDScript class reference for GridPlacement.RuleCheckIndicator2D.

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.

Tile indicator showing placement validity based on rules and collisions. Displays visual feedback for tile validity during building preview by running all assigned TileCheckRules and updating its visuals accordingly. Used by IndicatorManager and PlacementValidator as part of the validation pipeline. [br][br] Usage: It is recommended to set the TargetPosition to Vector2(0,0) so that the indicator's position aligns with the tile being evaluated. [br][br] [b]IMPORTANT FOR ISOMETRIC GAMES:[/b] This ShapeCast2D should use [ConvexPolygonShape2D] with explicit diamond points, NOT [RectangleShape2D] with skew transformation. When the parent [ManipulationParent] rotates (e.g., 90° during manipulation), skewed rectangles create visual distortion due to compound transforms (skew + rotation). Polygon shapes rotate uniformly without perspective changes. [br][br] For detailed explanation and examples, see: [code]docs/v5-0-0/guides/isometric_implementation.mdx[/code][br][br] See [code]project-architecture.md[/code] for system architecture and building flow documentation.

Source: addons/grid_placement/placement/rule_check_indicator/rule_check_indicator_2d.gd

Syntax

class RuleCheckIndicator2D extends res://addons/grid_placement/base/placement_cached_shape_cast_2d.gd

Members

NameKindSummary
valid_changedEventEmitted when validity status changes.
LogLevelField
validity_spritePropertySprite showing tile validity status.
show_indicatorsPropertyWhether to show the indicator visual sprites for players or not.
valid_settingsPropertyDefault display settings for when the rule check indicator is marked valid. [br] If unset, will default at runtime. However you should define a valid IndicatorVisualSettings for production games
invalid_settingsPropertyDefault display settings for when the rule check indicator is marked invalid. [br] If unset, will default at runtime. However you should define a valid IndicatorVisualSettings for production games
rulesPropertyThe rules to validate for whether this tile is valid for placement or not All rules must validate true to be valid. Otherwise, failed status will be shown For production, you do not set them in the template. You load them through the PlacementContainer. The @export option is only provided here for debug testing purposes in editor.
current_display_settingsProperty
validPropertyWhether the rules were validated for the area under the rule check indicator in the last test
shape_sizeProperty
resolve_placement_dependenciesMethod
get_rulesMethod
add_ruleMethod
get_tile_positionMethod
map_local_posProperty
map_tileProperty
clearMethod
validate_rulesMethod
failing_checkerProperty
settingsProperty
settingsProperty
texture_nameProperty
is_validProperty
selected_ruleProperty
selected_priorityProperty
shape_boundsProperty
tile_sizeProperty
collision_min_radiusProperty
collision_scaleProperty
connection_min_widthProperty
connection_scaleProperty
collision_point_radiusProperty
connection_line_widthProperty
contactProperty
local_contact_pointProperty
connection_colorProperty
collision_colorProperty
outline_colorProperty
marker_radiusProperty
text_offsetProperty
get_debug_infoMethod
validate_runtimeMethod
issuesProperty
issuesProperty
trace_runtime_if_enabledMethod
get_runtime_issuesMethod
issuesProperty
get_editor_issuesMethod
issuesProperty
settingsProperty
update_validity_stateMethod
force_validity_evaluationMethod
force_validity_evaluation_with_syncMethod
frame_signalProperty
settingsProperty
valProperty
settingsProperty
valProperty

Source

addons/grid_placement/placement/rule_check_indicator/rule_check_indicator_2d.gd

Plugin docs root:gdscript/plugins/grid_placement_dev/docs