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 |