- Home /
This question was
closed Jan 03, 2016 at 08:44 PM by
fledi1 for the following reason:
The question is answered, right answer was accepted
Question by
fledi1 · Nov 24, 2015 at 11:49 AM ·
playerprefsvariablessavinglong
How can you save a long variable with Playerprefs
I would like to use a long variable for one of my Games, but I can't see the SetLong Method in the PlayerPrefs Class so how am I able to save a long variable with PlayerPrefs.
Comment
Try the suggestion from this page
of splitting the long into 2 ints using bitwise operations.
And here is the C# reference on long
I think you should convert long variable to string to save in PlayerPrefs.