|
Post by francesco on Oct 25, 2010 11:21:47 GMT -5
Hi all, i have a lil problem with my app i made a Menu for the game start, but the problem is that when i start the game (and i make a instance of a class that i imported) all the above settings about camera, objects, nodepath, etc still remains (of course) and i don't know how to get rid of them. Of course i could detach or remove all the nodes one by one, but i wonder if exists a command that 'clean' all my nodes in just one strike.
|
|
|
Post by Hannes Vilhjalmsson on Oct 25, 2010 19:16:19 GMT -5
I'm not quite sure what the scene graph looks like that you are working with, but one would expect that if you arrange everything hierarchically, and don't attach everything directly under the root node "render", then you can detach large sections of the scene by detaching a strategically placed parent node, since everything below it will also get detached.
|
|
|
Post by francesco on Oct 25, 2010 23:09:14 GMT -5
yeah... mmm i'll surely do that... next time U_U sigh.
other ways to detach 'everything' directly to the render? ^_^' because i tried lots of things but without success...well actually i'm running out ideas....i just try another couple of things and finally go to bed Y_Y
|
|
|
Post by francesco on Oct 26, 2010 17:30:01 GMT -5
i solved with a redo of part of the Menu class, doing it in a hierarchical way, and detaching directly the base node attached to the render. Now all works fine
|
|