Object rule: the object must be placed next to an object that has required_profile. Example: a fence piece with a "Fence" profile must be placed next to another fence.
Source: addons/grid_placement/placement/placement_rules/template_rules/adjacent_to_category_rule.gd
Syntax
class AdjacentToCategoryRule extends TileCheckRuleMembers
| Name | Kind | Summary |
|---|---|---|
required_profile | Property | Profile a neighboring object must have. |
min_neighbors | Property | Fewest neighboring cells that must hold a matching object. |
include_diagonal | Property | When on, diagonal neighbors also count. |
error_message | Property | Message shown when the rule fails. |
validate_placement | Method |