Terrain rule: a painted tile must be next to a tile of a matching terrain.
Source: addons/grid_placement/placement/placement_rules/template_rules/adjacency_required_rule.gd
Syntax
class AdjacencyRequiredRule extends TilePaintRuleMembers
| Name | Kind | Summary |
|---|---|---|
match_terrain_name | Property | Terrain the neighbors must have. Leave empty to match the terrain being painted. |
require_horizontal | Property | When on, a matching neighbor must be to the left or right. |
require_vertical | Property | When on, a matching neighbor must be above or below. |
min_neighbors | Property | Fewest matching neighbors needed. With require_horizontal or require_vertical on, only neighbors in that direction count. With both on, the tile needs a match in both directions, forming a corner. |
include_diagonal | Property | When on, diagonal neighbors also count. |
error_message | Property | Message shown when the rule fails. |
validate_cell | Method |