Skip to content

Class

ObjectPlacementGhostTint3D

Generated GDScript class reference for GridPlacement.ObjectPlacementGhostTint3D.

Status
Current
Version
v6.1.0
Source updated
2026-09-24
Generated on
2026-09-23

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 RefCounted

Members

NameKindSummary
GHOST_ALPHA_SCALEField
GHOST_DETAIL_TINTField
tintMethod
profileProperty
patternProperty
untrack_ghostMethod
mesh_resProperty
alpha_scaleProperty
ghost_alphaProperty
basesProperty
invalidProperty
std_baseProperty
tintedProperty
cachedProperty
blendProperty
materialProperty
flat_tintProperty
blended_rgbProperty
emissionProperty