Object rule: every tile under the object must have a tile on the target map, so objects cannot be placed off the edge of the map. Add the rule to GridPlacementSettings.placement_rules for every object, or to an entry's own rules.
Source: addons/grid_placement/placement/placement_rules/template_rules/within_tilemap_bounds_rule.gd
Syntax
class WithinTilemapBoundsRule extends TileCheckRuleMembers
| Name | Kind | Summary |
|---|---|---|
success_message | Property | Shown in the action log when the rule passes and ActionLogSettings.print_success_reasons is on. |
failed_message | Property | Shown when part of the object is off the map. |
no_indicators_message | Property | Shown when the object has no collision shapes, so there are no tiles to check. |
enable_debug_diagnostics | Property | Logs details for every tile checked. Very verbose; for debugging only. |
NON_CRITICAL_ISSUE_KEYWORDS | Field | Issue keywords considered non-critical for bounds checking (cosmetic/setup) |
setup | Method | |
tear_down | Method | |
validate_placement_fast | Method | |
validate_placement | Method | |
get_failing_indicators | Method |