- Home /
Saving 30 bools in an array possible?
Hi, I've been struggling finding a way to save 30 booleans to an array in C# so I can save that for the next time I load up.
The boolean's are basicly | Normal/pro version > 3 difficulties > 5 Chapters |.
As example. I Complete "Normal-Medium-3" I want to be able to safe that to an array(I use PlayerPrefs2 to safe it) And then when I restart the game I can see that "Normal-Medium-3" is completed.
Answer by Heratitan · Jan 28, 2013 at 02:37 PM
If you wanted to save all of the booleans in an array, I would suggest looking at ArrayPrefs2 on unity3d wiki. With this you can just use SetBoolArray and GetBoolArray with playerprefs to save the states of all of your chapters.
If you wanted to save all of the booleans in an array, I would suggest looking at ArrayPrefs2 on unity3d wiki. With this you can just use SetBoolArray and GetBoolArray with playerprefs to save the states of all of your chapters.
Oh that sounds like it could work, I'll have a look into ArrayPrefs2 , thank you very much
Your answer
![](https://koobas.hobune.stream/wayback/20220613091731im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Array Of Bools 4 Answers
Multiple Cars not working 1 Answer
C# Specifying which Children to add to the Array 1 Answer
Trying to find boolean value in another script 0 Answers
C# Boolean Doesn't Change Value 1 Answer