Restarting scene - Best Practices

Just wondering what would be the best way to simply restart a scene. No need to keep any state, just a good old restart of a small simple scene.

I have tried the following:

GameController.prototype.reloadLevel = function() {
    this.app.loadSceneHierarchy('566389.json', function(err, entity) {
        if(err) {
            console.error(err);
        }
    });
};

but it doesn’t work. I was also unable to adapt with success the changing scenes tutorial. In anycase, I don’t want to change scenes, I want to reload the current one. What is the best way to do this?

1 Like

try also to add app.loadSceneSettings(‘566389.json’); not sure if just that is enough though

where is the scene settings json stored?

The scene settings can be found in the main editor screen close the name of project there is the name of the scene, you click there and have access to the settings

1 Like