PlayerPrefsX unknown identifier (588341)

Not sure if this is a Unity 5 thing, but for some reason, using UnityScript, I’m getting the Unknown identifier error using PlayerPrefsX

 var foo = new int[10];
for (i in foo)
    i = Random.Range(1, 100);
PlayerPrefsX.SetIntArray("SomeNumbers", foo);
 
var bar = PlayerPrefsX.GetIntArray("SomeNumbers");
for (i in bar)
    print (i);

have you included the PlayerPrefsX script in your project? it’s not a standard thing…

1 Like

Oh no I havent. How do I do all that?

Oh, there we go. For those wondering, I just made a js for the script at the end of

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

in unity, and it worked. Amazing!

1 Like