Search Unity

Sending and Receiving Messages

Discussion in 'Multiplayer' started by emergki, Oct 5, 2010.

  1. emergki

    emergki

    Joined:
    Oct 15, 2007
    Posts:
    422
    Hi,

    I need to send and receive messages from computers. I'm using 3 computers in Lan and, for the objects, I'm using the NetworkView, but, I need to send another messages with some data... I'm using only the Unity Network.

    These messages will contain only some informations about the game, like Speed, if some item are turned On or Off, etc.

    What's the best way to do that?
     
  2. AkilaeTribe

    AkilaeTribe

    Joined:
    Jul 4, 2010
    Posts:
    1,149
    networkView.RPC ?
     
  3. emergki

    emergki

    Joined:
    Oct 15, 2007
    Posts:
    422
    But, Can I use RPC for Realtime messages?
     
  4. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    Sure, nothing prevents it from that.
    rpc is just messaging too, the only difference to syncing is that it is always guaranteed sending
     
  5. emergki

    emergki

    Joined:
    Oct 15, 2007
    Posts:
    422
    Ok, Thank you Guys! ;)