void SceneNode::setVisible(bool isVisible, bool cascade = true)
Ogre::SceneNode * node = sceneMgr->getRootSceneNode()->createChildSceneNode("BoxNode"); Ogre::Entity * entity = sceneMgr->createEntity("Box", Ogre::SceneManager::PT_CUBE); node->attachObject(entity); node->setVisible(false);
for (unsigned int i = 0; i < numNodes; ++i) { sceneNodes[i]->setVisible(false); }In this example, a loop is used to iterate through an array of scene nodes, and then calls the `setVisible` function on each node to make it invisible. Package library: Ogre3D