Sending byte[] over RPC is not working

Options

Hello.

I have been working for a while now to send a screenshot from the host to the other players. Only now I am getting this error message


So I may not send a Sbyte in RPC. But to my knowledge, I just use byte[].

Here is the code:

Hope someone can help me with this.

Answers

  • Tobias
    Options

    Which PUN version is this?

    You may want to wrap the last parameters into a new object[], which is then the single last parameter.

    Photon is really not built to share content / files. I would use a http based service, where users upload stuff and get an ID they could share (in a Photon room). Then others can download.