I’m getting an errors while trying to pass an array to a method.
object [] array1 = new object [16];
for(int a=0;a<16;a++){
array1[a] = new object();
}
getArray(array1);
void getArray(object [] array2){
//do something with the array
}
the error says the method expects 1 argument but recieves 16, which is wierd to me cause it should recieve the array and not the objects seperatly or so I assume.
any help?
I just read that an array isnt a valid argument of an RPC, hmm too bad, gnna pass em 1 by one…