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?