string array as RPC parameter

Options
TyrokaFX
TyrokaFX
edited May 2022 in Fusion

I tried to use a string array as parameter for a rpc method, but i get the error Type string is not supported. Do i have to put all string elements in one big concatenated string?

[Rpc(RpcSources.All, RpcTargets.All)]
void RPC_Test(string[] myArray, RpcInfo info = default)


Answers

  • emotitron
    emotitron ✭✭✭
    Options

    I would try NetworkString<> in this context (though I have not tested those as arrays in RPCs).