The title says it all. I have the following code:
public int amount;
public int x;
public int y;
public int[][,] derp;
public void resizeArray(){
int[][,] newArray = new int[amount][y, x];
derp = newArray;
}
Then I receive the following error: Invalid rank specifier: expected ‘,’ or ‘]’
Maybe this can’t even be done but I would like to have an array and have every object inside that array have it’s own multidimensional array. So array[0] has it’s own multidimensional data and array[1] has it’s own multidimensional data and array[2] has it’s own multidimensional data and so on…
Is this even possible? Why do I receive this error? How can I fix it?
Thanks!