Method LabelsBehindGeometryAreHidden
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
LabelsBehindGeometryAreHidden()
A label whose object something solid stands in front of is HIDDEN - the case the owner reported on 2026-09-24: "we're missing, in the new nameplates, the hiding when the nameplates are under an open container/inventory". The old system never had it (its TODO is still in TooltipManager: "maybe we should raycast so we don't show nameplate behind terrain, floor, containers"), so while a container is open every label behind it - worn gear, loot on the ground - was drawn on top of the box.
The blocker here is a plain collider parked between the camera and the item rather than a real container: the container needs a hero, an opened inventory and its own arrangement, while what is under test is the visibility rule. Measured with the real inventory open, every camera->anchor ray in the scene is blocked the same way, by the container's body and by its Handle-layer click shield ("InventoryCollisions").
The contents of an open container are exempt from this test on purpose (they are the promotion case, and their anchors sit inside the container) - see InteractiveBehaviour's occlusion block.
public IEnumerator LabelsBehindGeometryAreHidden()