Hello…Does anyone know how to modify PPX.SetStringArray so that it saves the data of a 2D Array? I realllly need help with this…Or is there another technique I could use to save my data?
I store data in an 2D Array:
public static string[ ][ ] Inventory = {
new string[ ] {null,null,null,null,null},
new string[ ] {null,null,null,null,null},
new string[ ] {null,null,null,null,null},
//etc..
};
But I cannot figure out how to save it! The only thing that comes close to saving my data is:
for (int i = 0; i < 3; i++)
{
for (int j = 0; j < 5; j++)
{
PlayerPrefsX.SetStringArray("CharChoice" + PlayerPrefs.GetString("CurrentSlot"), Inventory[i][j]);
}
}
But I think PlayerPrefsX.SetStringArray needs to accept a 2D Array straight up. I don’t think the iteration scheme is doing anything…
Please could someone help?