- Home /
Question by
boazlaurens · Oct 26, 2014 at 10:12 PM ·
c#saveunityserializer
List all saved games C# UnitySerializer
I'm using UnitySerializer to save instantiated prefabs in my runtime map editor. I'd like to have a list of buttons for each saved map. I got the following from 'PauseMenu.js':
for(var sg in LevelSerializer.SavedGames[LevelSerializer.PlayerName]) {
if(GUILayout.Button(sg.Name)) {
LevelSerializer.LoadNow(sg.Data);
Time.timeScale = 1;
}
}
Could you please help me converting this to C#. The main problem I think is that I don't know what type to define 'sg' with..
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613170025im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity Saved Serialized Levels 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Save values on different objets with same script? 1 Answer
Help with Binary Save system 1 Answer