Hi. In Unity Javascript, I cant make PlayerPrefsX to store Array of Strings.
Here are the requirements-
- I have an Array of Strings.
- Doing Array Push in that.
- Now I want to store the item in PlayerPrefX
What I did is-
var storedScoresArr:Array = new
Array();storedScoresArr.Push(scoreDetails);
PlayerPrefsX.SetStringArray(“ScoreDetails”,
storedScoresArr); // Gives Error
P.S
I know if I do like the following, it will work; but cant do an Array Push.-
var storedScoresArr:String = [“abc”, “xyz”]; // it will work
// But
doesn’t support ARRAY PUSH
Please help with any workaround or if there is any way to convert the Array to String just before storing in PlayerPrefsX.