I'm trying to send an Rpc
, or any sort of message, to a specific client instead of to them all.
I'm completely at the loss trying to associate a NetworkConnection
with its own authoritative spawned player (from playerPrefab
).
If I let the NetworkManager
auto-spawn it, then I don't know how to get the connection from the player object.
If I override OnServerReady
and I spawn it myself, then it has no authority on the client and I don't know how to give it.
I've browsed all sort of documentation but I couldn't find anything useful. Obviously there must be a way to do that, but I really can't find it.