hi all,
i’m doing an app for android, and i use “playerprefs.setfloat” and “getfloat”.
Why this function work in pc but not onto my smartphone?
If you are using a float or int make sure that the number is properly defined. For example 1.0120 is a float. If you have
Var anumber : int;
Var afloat : float;
function Start (){
afloat = 1.01;
PlayerPrefs.SetInt(afloat);
}
It will not save because you are trying to save a float as a integer or vice versa.
I had this issue when i was doing player preferences
ok thanks… now i try to put outward this function