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 |
Tutorials built on Grid Placement
- Godot multiplayer grid placement: one host, four sessions
- Godot 2D grid building system: paint, place, save
- Godot 3D grid building system: the runtime loop
- Godot 4 grid-building plugins: build mode vs editor tools
- 3D room placement in Godot: build rooms and stack storeys
- 3D grid placement in Godot 4: full setup tutorial
- Snap to a TileMap in Godot: 2D grid placement
- How to make a farming system in Godot
- How to snap objects to a 3D grid in Godot