Search Unity

UNET Send a network message to some players but not all

Discussion in 'UNet' started by clever, Sep 25, 2016.

  1. clever

    clever

    Joined:
    Oct 11, 2012
    Posts:
    39
    Hi everyone, if I have a NetworkServer and I want to send a network message to some of the players but not all, how best to go about this?

    Remember, I cannot user SendToAll as I want only some clients to receive the message. Also I cannot user SendToReady or anything like for many other reasons.

    Should I use make a loop and do Send to each player on the list of the ones that are supposed to receive the message? is that how the SendToAll works (sends x many messages to the x players connected, instead of some kind of broadcast)?

    Apologies if this is somewhat basic, but knowledge is limited.