So I am using long type variable in game.
How to save this? Playerprefs only support int, float type, right?
So I am using long type variable in game.
How to save this? Playerprefs only support int, float type, right?
If by [long] u mean array. There is a good system on the wiki for saving arrays to playerPrefs.
No, by long he means long. A long is 64-bit, so if you chop it in half (you could use System.BitConverter), you have two 32-bit ints, and can save those using SetInt. Then recombine after using GetInt.
–Eric
Thx I will search about BitConverter