Madclaws Posted November 5, 2018 Share Posted November 5, 2018 Hi, I am new to babylon.js.I am trying to add a restart button,so that on clicking game/scene should restart.Can you guys share right way to do this? Quote Link to comment Share on other sites More sharing options...
ssaket Posted November 5, 2018 Share Posted November 5, 2018 you mean by destroying all meshes and then recreate scene ? for that you can use scene.dispose() and then call your create scene method again. you can also use AssetContainer https://doc.babylonjs.com/how_to/how_to_use_assetcontainer to manage your resources/assets. Madclaws and GameMonetize 2 Quote Link to comment Share on other sites More sharing options...
Madclaws Posted November 14, 2018 Author Share Posted November 14, 2018 @ssaket Thanks. 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.