I'm making a fairly simple game but it's pretty long so I want to add a save and quit button which loads the last scene the player was in before he quit the game. I'm fairly new but know the basics so could someone please tell me what to do please.
If all you care about is reloading the same scene, you could use PlayerPrefs. It's simple. Sure, it could be erased, but it's easy to start with. If you need to store more data, you can consider using Json (in Unity, JSonUtility), or BinaryFormatter. Here are some links for what was mentioned and a few other saving features: https://unity3d.com/learn/tutorials/topics/scripting/persistence-saving-and-loading-data https://docs.microsoft.com/en-us/dotnet/standard/serialization/basic-serialization https://docs.unity3d.com/ScriptReference/JsonUtility.html
Piece of cake: 1: Use SceneManagement to load a scene: https://docs.unity3d.com/ScriptReference/SceneManagement.SceneManager.LoadScene.html 2: Use PlayerPrefs.SetString to save what scene the player was on: Code (CSharp): PlayerPrefs.SetString("LastScenePlayed", Application.loadedLevelName); 3: Load using PlayerPrefs.GetString.