Hi,
I would like to be able to set a node (and its childern ) visible/hide it with a click of a gui button (VR Tempalte, GuiSample).
I have two buttons; one for hiding/one for setting it visible again:
void GuiSample::icon_furniture_hide()
{
NodePtr node = Editor::get()->getNodeByName("furniture");
}
void GuiSample::icon_furniture_show()
{
NodePtr node = Editor::get()->getNodeByName("furniture");
}
Can I use the getNodeByName method here? Colud you please help me on finishing these methods?
Thanks!