Search the Community
Showing results for tags 'remove'.
-
Hello, I cannot find the function to remove a filesystem mount which takes a FileSystemMountPtr. What is the supposed way to do this? Why have the .umount file not been deleted after calling Unigine::FileSystem::clearMounts()? Thanks
- 12 replies
-
- 2.10
- filesystem
-
(and 2 more)
Tagged with:
-
Hello Community, i have a little problem, the most is said in the topic-title, but here a little longer explanations: First i want to load a defined gui: engine.gui.addUserInterface ( engine.getGui(), "myGui.ui" ); After this, i do: Gui gui = engine.getGui(); Now my gui is visible. And now my problems begins: I have a Button called "Add a Tab", with this i want to change the myGui.ui, and add a new Tab dynamic to the .ui, of course i want to remove a tab again too, this needs to be dynamlicy, so i could add more then one tab, and remove more then one tab. The second thing is, when i added a dynamic tab, i want to input some buttons into the tab too. (Maybe this both things needs to be added together, i dont know?) I've searched the API and https://developer.unigine.com/docs but i didnt find anything. Is there any point to help me? Maybe someone have a example to me, how to do this? Greetings
-
i try to use WidgetSpriteNode class. i want to draw a node in WidgetSpriteNode. but the node appear at WidgetSpriteNode with worldscene. i wrote this script. ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // my script m_lbSpriteNode = new WidgetSpriteNode(gui, 430, 600); Node node = node_load("mesh.node"); m_lbSpriteNode.setProjection(ortho(-10, 10, 50, -1, 0.1f, 100.0f)); m_lbSpriteNode.setModelview(lookAt(vec3(0,-1,0), vec3(0,1,0), vec3(0,0,1))); m_lbSpriteNode.setNode(node); // Transparent background viewport m_lbSpriteNode.setBlendFunc(GUI_BLEND_SRC_ALPHA,GUI_BLEND_ONE_MINUS_SRC_ALPHA); engine.render.setAmbientColor(vec4(1, 1, 1, 1)); // remove engine.editor.removeNode(node); or node_remove(node); ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// but i was failed remove from worldscene. can i remove the node from worldscene for only use in WidgetSpriteNode ?
- 5 replies
-
- [WidgetSpriteNode
- remove
-
(and 2 more)
Tagged with: