I’m making an idle clicker game and im using long instead of int to store long numbers. I need to save the long variables but i can only use int with playerprefs. I’ve looked around but i cannot seem to find a right way that works for me.
you store long value as string in player prefs and then convert it
private void Awake()
{
long l = 15023563;
PlayerPrefs.SetString("LongValue", l.ToString());
long newlong = long.Parse(PlayerPrefs.GetString("LongValue"));
Debug.Log(newlong);
}