I have a simple SpherePanel GUI object and I want to toggle it’s visibility on and off. I gave the panel a name and thought that I could use that name to query the panel in the scene later on. I can’t seem to find the panel when I look for it
let name = "panelName"; let findPanel = scene.getNodeByName(name); console.log("panel: ", findPanel); // showing as null //findPanel.isVisable = !panel.isVisable; // undefined because I can't find the panel by name
Is there a better way to find this panel?
Here is a basic playground with the named panel.