max123 Posted November 18, 2016 Share Posted November 18, 2016 Hi, How do you unload a scene? There's a BABYLON.SceneLoader.Load, but no Unload? How do I remove a scene completely? Here's my dilemma: I've got a game with 3 levels. I'm not loading assets through the assets manager as all three scenes are Blender exports (with lights and cameras set up). At the end of each level I want to unload the previous scene (instances, clones, sounds, etc) and load a new one. Surely there must be a way, but I just cant find it... Thanks! Quote Link to comment Share on other sites More sharing options...
max123 Posted November 18, 2016 Author Share Posted November 18, 2016 e.g. when I simply load a new scene, the old ambient sound keeps playing. Quote Link to comment Share on other sites More sharing options...
DigiHz Data Posted November 18, 2016 Share Posted November 18, 2016 scene.dispose(); max123 1 Quote Link to comment Share on other sites More sharing options...
max123 Posted November 18, 2016 Author Share Posted November 18, 2016 Thanks, @DigiHz Data, will try that. 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.