Disposing Objects And Restoring Them
Solution 1:
How do I restore the objects if I remove and dispose of them? - If you dispose object right, you must load it again, which is ugly
Is that a good approach to it, is it even possible, and/or is there a better way of achieving this?
- If you plan to show object again, it is better to set obj.visible = false
; Loading and disposing again is the worst performance method. Some things (as is fog etc..) cannot be applied correctly after loading object later.
Also, if that is a way to do it, how do I select all of the scenes except for the currentScene? - Not sure about question, make a new question for that. (by controlling mouse move i guess)
I'm well aware that it'll put a loading time switching between scenes, but I'd still much more prefer that. - It's not a way how it works. Scenes are running at the same time, you can stop animation frame for inactive scenes. But scenes will load on initialisation, not during switching them.
Ask always only one question pls.
Post a Comment for "Disposing Objects And Restoring Them"