Store Array in PlayerPrefs?

Is this possible? I've not been able to figure out how to get this to work.

As noted, use this now. The accepted answer site is dead at this time.

I had the same problem and I thought the solution:

public int [] puntaje;
for(int i=0;i<puntaje.Length;i++){
  •  	}*
  •  	for(int i=0;i<puntaje.Length;i++){*
  •  		print(PlayerPrefs.GetInt("Puntaje"+i));*
  •  	}*

my solution was to store my variables in a string and separate them with ’
'. it only works for strings that have no ’
's in them though.

For some reason, the website doesn’t seem to work. This simple solution works perfectly for everything… :slight_smile:

Link : Unity PlayerPrefs Advanced [ Save Vectors, Colors, Arrays, Lists, Objects, .. ] - YouTube