FlashyGoblin Posted April 27, 2016 Share Posted April 27, 2016 Is there a way to destroy a scene and all of it's dependancies? I would like to create a 3D scene that would act as a launching pad to load other scenes. Then be able to go back to the launch pad scene to choose another one, but would first like to clean up the current scene to free up memory. It's important that we stay within the same BABYLON.Engine object. I hope that makes sense. Any thoughts about this approach? Thanks in advance! JackFalcon and gdebojyoti 2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 27, 2016 Share Posted April 27, 2016 Hey, this makes complete sense, just call scene.dispose() gdebojyoti, JackFalcon and jhadenfeldt 2 1 Quote Link to comment Share on other sites More sharing options...
FlashyGoblin Posted April 29, 2016 Author Share Posted April 29, 2016 Thanks David! So does that breakdown and clean up everything inside the scene and clears all memory? Meshes, sprites, animations, textures, etc. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted April 29, 2016 Share Posted April 29, 2016 Correct JackFalcon 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.