Load a Scene or level with PlayerPrefs

345/5000

Hey, I am developing a platform game, which is composed of a main menu and 10 levels, currently I managed to load the last position of the saved player but I can only use it in the same scene … I wish I could load the last saved scene when I enter the menu and press the continue button, but I don’t know how to do it

If you want to do this by playerprefs. Create a playerPref like “LastScenePlayed” and then access that playerPref in your menu and load that scene right away if that is what you want. If the playerPref doesn’t exist, you just stay on the menu.