Adapter/contract interface for the grid targeting service (6.0.0-S). 6.0.0-211: a 3D group gets GridTargetingService3D, a 2D group gets the 2D base class. Both satisfy this contract so the host stops branching on concrete type. The 3D variant takes a different configure_for_3d() signature (no path_manager) and the group dispatches it using configure_for_3d() / configure_for_2d() on the concrete adapter; the host only sees the contract surface.
Source: addons/grid_placement/services/contracts/targeting_service_contract.gd
Syntax
class TargetingServiceContract extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
supported_dimensions | Method | |
configure_for_2d | Method | |
configure_for_3d | Method | |
get_runtime_issues | 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