SceneManager.gameRestart

Restarting the game.

Please note that this function causes complete deletion and creation of all scenes in the framework. Therefore, it is recommended to load all resources through the resource manager so that when you restart all scenes of the constructor of such scenes, the resources are not loaded again.

Also note that there are resources in the game that may not be reloaded by this function. For this there is an event GameRestart, in it put the implementation of the function that fixes such problems.

class SceneManager
@safe @trusted
void
gameRestart
()

Meta