Session-cached ghost tint for the 3D placement preview. Owns the per-(base, color, validity) tint materials and the per-ghost base-material snapshots, so cursor movement reuses materials instead of churning them. Presentation only: it copies the authoritative ghost transform and validity passed per call, never computes them. The owning service holds one instance for the session; cached materials deliberately outlive individual ghosts (a ghost is released with queue_free() while the next entry is already being tinted, so per-ghost materials would let the renderer query a released override).
Source: addons/grid_placement/systems/building/3d/object_placement_ghost_tint_3d.gd
Syntax
class ObjectPlacementGhostTint3D extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
GHOST_ALPHA_SCALE | Field | |
GHOST_DETAIL_TINT | Field | |
tint | Method | |
profile | Property | |
pattern | Property | |
untrack_ghost | Method | |
mesh_res | Property | |
alpha_scale | Property | |
ghost_alpha | Property | |
bases | Property | |
invalid | Property | |
std_base | Property | |
tinted | Property | |
cached | Property | |
blend | Property | |
material | Property | |
flat_tint | Property | |
blended_rgb | Property | |
emission | Property |
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