- Home /
Question by
karl_ · Jul 15, 2010 at 11:09 PM ·
arrayplayerprefsx
PlayerPrefsX Question
This has been a huge help thus far, but I've become stuck with a bit of syntax in the storing arrays function. I get an error saying "No appropriate version of 'PlayerPrefsX.SetStringArray' for the argument list '(String, Array)' was found. I'm not sure where my problem is. directionArray is the array I want to save:
// Store directionArray in a file
if (!PlayerPrefsX.SetStringArray("directionArrayPerm_1", directionArray))
Debug.Log("Oops, directionArray saving failed");
Comment
Best Answer
Answer by Mike 3 · Jul 15, 2010 at 11:42 PM
It'll need to be a built in array (i.e. String[] ), not a javascript Array
Try using directionArray.ToBuiltin(String) as the last parameter
Right on. I didn't realize Javascript arrays weren't allowed.