Application.LoadLevel(This level) ?!??

Is there a way to call something like Application.LoadLevel but load the level currently running, basically as a way to reset the level?

Currently I am calling Application.LoadLevel(“Game_Level1”), but as I add more levels I need a way to reset whatever level they are currently playing. So is there something I can put in between the parenthesis for a simple fix?

Thanks!

Hi,

Application.LoadLevel(Application.loadedLevel) :slight_smile: Will reset your level :slight_smile:

It isn’t stated in the API (but I found it by searching : unity application load level the current level), you can use Application.loadedLevel to find the current level, then load that level again with :

Application.LoadLevel(Application.loadedLevel);

API :

other links :