x


Player prefs and bool

I'm having a hard time figuring out how to use player prefs to save and load the game(automatic at game start) in c#.

It doesn't help that most of the things that should be saved are of the bool type, and it only seems to take int and strings, do I really have to convert all my bools if so, what would be the cleanest way to do that?

So how would one go saving and loading bool types?

more ▼

asked Apr 07 '11 at 07:28 PM

Glowy gravatar image

Glowy
20 5 5 10

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

You can use BoolPrefs (still uses GetInt/SetInt, but you don't have to think about it).

more ▼

answered Apr 07 '11 at 08:42 PM

Eric5h5 gravatar image

Eric5h5
80.3k 42 132 521

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x438
x437
x296
x240

asked: Apr 07 '11 at 07:28 PM

Seen: 1981 times

Last Updated: Jul 16 '11 at 11:17 PM