text for zones

This commit is contained in:
wass08
2026-01-29 14:52:15 +09:00
parent 9501971c80
commit 916097733f
3 changed files with 53 additions and 2 deletions
@@ -11,7 +11,12 @@ export const ZoneSystem = () => {
zones.forEach((zoneId) => {
const node = sceneRegistry.nodes.get(zoneId)
if (node) {
node.visible = visible
node.visible = visible;
const label = node.getObjectByName('label');
if (label) {
label.position.y = visible ? 1 : -1000;
// Hacky way to hide the label when not visible
}
}
})
}, [structureLayer])
Binary file not shown.