Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to save the game?

Discussion in 'Open Projects' started by jeffreytigerwang, Aug 21, 2022.

  1. jeffreytigerwang

    jeffreytigerwang

    Joined:
    Oct 18, 2021
    Posts:
    1
    Can someone please explain how does the Save & Load system work in the game?

    I did not find any button for save. Is there a way to save the game session at any time?
     
  2. joechuang

    joechuang

    Joined:
    Mar 21, 2020
    Posts:
    2
    U can see about _saveSystem.SaveDataToDisk
     
  3. Israr_Rashid3

    Israr_Rashid3

    Joined:
    Oct 10, 2020
    Posts:
    3
    https://learn.unity.com/pathway/junior-programmer
    In this Pathway, you will find the solution to your problem related to saving and loading. I also learned it from here. I watched a lot of tutorials on YouTube and also read some StackOverflow links but these tutorials can't be taught me the JSON way of saving and loading. To understand the save and load concept using JSON, you should see the "Manage Scene Flow and Data" section of this tutorial. Unity Technologies explained these concepts in a very great practical way. Although, there is also a simple way of saving and loading which is using PlayerPrefs.