Playerpref.SetInt enterd with a float.

So I want to save a float, or either a int with the following info:“1.2”. Is there any way to do this? Because when you force it to be an int it rounds down to 1.

You probably don’t need the code, but here you go ;p.

PlayerPrefs.SetInt(((AttrName)i).ToString() + " - Level Modifier", (int)PlayerController.GetAttr(i).LevelMod);

And yes I have googled.

Is there a reason you can’t use SetFloat/GetFloat ?

Convert the float into an int. This gives you the 1. Save that as an int. Then subtract 1 from your float, then multiply by 10. Then convert that into an int. This gives you the 2. Save that as an int.