One commit attempt of a placement service: the report it fills, the reserved attempt id, and the world and session identity stamped on its PlacementLifecycleResult. Grid and smooth services share it so every commit path rejects, commits, and names its definition the same way.
Source: addons/grid_placement/placement/placement_commit_attempt.gd
Syntax
class PlacementCommitAttempt extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
MSG_BLOCKED | Field | Player-facing rejection messages shared by the placement services. |
MSG_OCCUPIED | Field | |
MSG_TAKEN | Field | |
MSG_MOUNT_TAKEN | Field | |
MSG_EDGE_TAKEN | Field | |
MSG_FLOATING | Field | |
MSG_NO_GROUND | Field | |
MSG_NEEDS_WALL | Field | |
MSG_TRY_AGAIN | Field | |
MSG_INSTANTIATION_FAILED | Field | |
report | Property | |
attempt_id | Property | Empty when the service has no allocator. |
world_id | Property | |
session_id | Property | |
reject | Method | |
begin_commit | Method | |
commit | Method | |
definition_key | Method |
Guides that use this class
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