RPC request issue
Options
Hi,
I've got this :
called in the same class there:
and it return me that error:
I've got this :
called in the same class there:
and it return me that error:
0
Comments
-
So i don't know why, but it looks like my byte[][] is considered as a byte[].
Someone has a solution?0 -
Hi @SirKrow,
I think PUN does not support serialization of jagged or two-dimensional arrays.
I recommend you serialize all the data to a regular one-dimensional byte array.
In all cases, if you want to use an array as an RPC parameter, cast it as an object first:byte[] data = SerializeData(); photonView.RPC("SendMaterialData", RpcTarget.OthersBuffered, (object)data);
0 -
I already used a bidimensional array in a RPC and it worked very well, but i'll to replace this0