- Home /
Question by
yonatanab1 · Mar 16 at 05:46 PM ·
c#networkingunity5programmingrpc
ClientRPC not getting sent.
for some reason my RPCs are only getting sent to the host:
private void Update()
{
if (Leader) //is server || is host
SomethingClientRPC(NetworkManager.Singleton.LocalClientId);
}
[ClientRpc] void SomethingClientRPC(ulong clientid)
{
Debug.LogError("I am a clientRpc!" + clientid);
}
only the host is showing the error log. did I do anything wrong?
(The host player is executing the RPC but the client is not.)
Comment