- Home /
Question by
dasani2406 · Aug 30, 2017 at 10:40 PM ·
arrayliststringsaveload
How to save and load a list (containing string data) with playerpref ?
I want to be able to add a string in a list and save it and also load it, so when I turn off the game and turn it back on the list contain the new saved string.
Comment
Answer by Opeth001 · May 04, 2018 at 03:46 PM
i think the best way is to convert your list into a Json string and save it as a string using PlayerPrefs. you can fetch the string from PlayerPrefs and deserialize it into your List.
you can store anything like this :D ( Objects, or Lists of Objects )