How To Invoke RPC On All Clients

RPC class allows you to call RPC on all clients in the room.

Each RPC call requires its associated RPC ID. The sender (Caller) client must specify the associated RPC ID when calling PRC calls.

// rpcID = 1 means that you will invoke RPC method associated with 1
int rpcID = 1;

// For UDP client reliable = true means RUDP transmission
bool reliable = true;

bool called = rpc.RPCAll(rpcID, Encoding.UTF8.GetBytes("Hello World"), reliable);