- Home /
Saving lists
Hey i'm almost ready for alpha release and im wrinting my save script so that people can pick up where they left off. Now i have random item generation in my game and the way the inventory works is you have a list on the gamemanager which stores all the item information the inventory will you the Index of that item in the list to move the item or equip it and what not. Now is there anyway i can save this list? Other then to save all the variables manually and then put them back in the list on load. There are a ton of variables and also alot of object that are created at run time. So i was just wondering is there a way to simply save the list? Or atleast the objects? I have never created a save script before so maybe im just doing it wrong.
Answer by VesuvianPrime · Feb 06, 2015 at 09:39 PM
You may find this invaluable:
http://wiki.unity3d.com/index.php/ArrayPrefs2
The script provides examples for storing/retrieving things in player prefs, as well as storing arrays.
the list is not an array so not sure if this will help plus the list exists out of scripts and not ints or floats.
Your answer
Follow this Question
Related Questions
Set int to object from list? 0 Answers
Saving a list of items 1 Answer
Save and Load Function 2 Answers
How i can PlayerPrefs List<>? 0 Answers
A node in a childnode? 1 Answer