playMaker

Author Topic: Save and Load scene or file?  (Read 1872 times)

azmilarash96

  • Guest
Save and Load scene or file?
« on: April 12, 2011, 06:11:02 PM »
i don't know if its already have in unity, but i seems didn't notice this. Well, i'm a noob and no experience in scripting. if i'm able to save a scene and then load it back, how can i do this? if there isn't, will be added?  ???

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3202
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Save and Load scene or file?
« Reply #1 on: April 12, 2011, 08:11:03 PM »
Do you mean saving the current state of a scene at runtime?

There's no generic way to do that... the information that needs to be saved is generally specific to a game.

You can use the PlayerPrefs actions to save/load any information you want to keep. For example, save variables before leaving a level, and load them in a start state after loading a level.

You can load scenes with Load Level and Load Level Num actions.

artician

  • 1.2 Beta
  • Sr. Member
  • *
  • Posts: 296
    • View Profile
Re: Save and Load scene or file?
« Reply #2 on: June 14, 2011, 10:55:26 AM »
I was looking for a similar solution, and would love to request some actions related to Moodkie's Easy Save extension.  I'd understand if you don't want to include specific actions that require external tools, though.

Thanks.