text for zones
This commit is contained in:
@@ -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])
|
||||
|
||||
Executable
BIN
Binary file not shown.
Reference in New Issue
Block a user