Search Unity

Is there a way to revert Saved Vars to its initial state?

Discussion in 'Visual Scripting' started by DrVanillaCookie, Jan 9, 2022.

  1. DrVanillaCookie

    DrVanillaCookie

    Joined:
    Aug 23, 2021
    Posts:
    53
    Or simply delete it? Seems like an obvious thing, for instance to start a new game all saved vars are reverted and all newly created vars are delete. Or am I missing something?
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,068
    Welcome to reason #99 why you should not use Saved Variables. Consider using Universal Save or one of the Asset Store save system assets that have UnityVS integration.
     
    DrVanillaCookie likes this.
  3. DrVanillaCookie

    DrVanillaCookie

    Joined:
    Aug 23, 2021
    Posts:
    53
    Hey thanks, hopefully I can figure it out. Wish there were more tutorials on building a save system in VS.

    Quick question: is it doable to have lots and lots of persistent objects (like blocks in Minecraft or trees in Dont Starve) using Universal Save?
     
  4. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,068
    I can't say, I haven't done any save (Universal or otherwise) system profiling. I'm also unfamiliar with save systems in those other games.