Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How to save system between scenes

Discussion in 'Scripting' started by kakasss, Jun 24, 2020.

?

How to save system between scenes

  1. load last scene

    0 vote(s)
    0.0%
  2. save current scene

    1 vote(s)
    100.0%
  1. kakasss

    kakasss

    Joined:
    Jul 27, 2018
    Posts:
    2
    Hey guys, I'm trying to make a text based game, currently working on save sytem.

    upload_2020-6-24_4-17-9.png upload_2020-6-24_4-18-6.png
    These are my scenes,I've tried too many way to figured out save sytstem, like this
    upload_2020-6-24_4-20-6.png
    As you can see, whenever play the game, maincurrentscene is always become 0 cause every time I restart the game It opens first scene.I couldn't understand what I have to.
    I need to load last scene when I prees continue button.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,514
    Definitely work through two or three small savegame system tutorials on Youtube. This is a very well-travelled subject and there are plenty of great examples out there.
     
  3. kakasss

    kakasss

    Joined:
    Jul 27, 2018
    Posts:
    2
    well after 2 days,I found the solution.
     
  4. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    4,193
    How about you say what your solution was, in order to help others out?