I am having this error pop up on the clients when calling a TargetRpc On Server side
[TargetRpc]
public void GiveOreToPlayer(NetworkConnection conn, int totalOreToGive)
{
Debug.Log($"{conn} got {totalOreToGive}");
}
It only shows the error when I use the conn variable if I was to remove it, it works fine
Hello there, that warning is nothing to worry about. It is there because you are trying to print the connection on the client side and it will try to print the address of that connection, which it cannot since it isn’t running as the server. It can sometimes be more useful to print the Client ID of the NetworkConnection instead of the NetworkConnection itself.