Store Array in PlayerPrefs?

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

http://www.unifycommunity.com/wiki/index.php?title=ArrayPrefs

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

http://wiki.unity3d.com/index.php/ArrayPrefs2

I had the same problem and I thought the solution:

public int [] puntaje;
for(int i=0;i<puntaje.Length;i++){
				PlayerPrefs.SetInt("Puntaje"+i,puntaje*);*
  •  	}*
    
  •  	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