Tile indicator showing placement validity based on rules and collisions. Runs all assigned TileCheckRules and updates visuals for the building preview; used by IndicatorManager and PlacementValidator. Set TargetPosition to Vector2(0,0) so the indicator aligns with the tile under evaluation. [b]Isometric games:[/b] use [ConvexPolygonShape2D] with explicit diamond points, NOT a skewed [RectangleShape2D]. Under a rotated [ManipulationParent] the skew compounds into visual distortion; polygons rotate uniformly. See [code]project-architecture.md[/code] for building-flow docs.
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.gdMembers
| Name | Kind | Summary |
|---|---|---|
valid_changed | Signal | Emitted when validity status changes. |
LogLevel | Field | |
validity_sprite | Property | Sprite showing tile validity status. |
show_indicators | Property | Whether to show the indicator sprites. |
valid_settings | Property | Display settings for a valid indicator; defaults at runtime, but production games should assign one. |
invalid_settings | Property | Display settings for an invalid indicator; defaults at runtime, but production games should assign one. |
rules | Property | Rules checked for tile validity; all must pass. Production loads these through the PlacementSession; the @export is for editor debug only. |
current_display_settings | Property | |
valid | Property | Whether the rules were validated for the area under the rule check indicator in the last test |
resolve_placement_dependencies | Method | |
get_rules | Method | |
add_rule | Method | |
get_tile_position | Method | |
clear | Method | |
validate_rules | Method | |
get_debug_info | Method | |
validate_runtime | Method | |
trace_runtime_if_enabled | Method | |
get_runtime_issues | Method | |
get_editor_issues | Method | |
update_validity_state | Method | |
force_validity_evaluation | Method | |
force_validity_evaluation_with_sync | Method |