help with data send

Options

hello, i am quite new with photon, i am trying to send in an rpc a string[] value, but at the moment of sending the rpc i get this error:

Object of type 'System.Object[]' cannot be converted to type 'System.String[]

anyone could help me with that?

thanks

Comments

  • Tobias
    Options

    RPC accepts an object[] as parameters, which means you have to be more explicit when sending an array only. You may need to wrap the string[] in an object[] when calling the RPC.