Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Can ClientRpc's be unreliable in unet?

Discussion in 'UNet' started by PrimeDerektive, Apr 19, 2016.

  1. PrimeDerektive

    PrimeDerektive

    Joined:
    Dec 13, 2009
    Posts:
    3,086
    It's my understanding that NetworkSettings(channel=1) only makes SyncVars unreliable, correct? I've added ClientRpc(channel=1) to my RPC declaration, and I get no errors, but I have no way of detecting if its actually sending unreliably. Can anyone confirm?
     
  2. SuperNeon

    SuperNeon

    Joined:
    Mar 16, 2014
    Posts:
    85
    Hi !

    Per default the channel 1 is unreliable.
    Check in the NetworkManager component, advance section.
     
  3. PrimeDerektive

    PrimeDerektive

    Joined:
    Dec 13, 2009
    Posts:
    3,086
    Yep, I get that... I just don't see anywhere in the documentation that says you can add (channel=1) and have RPC's use the unreliable channel, it only mentions it for commands and syncvars. Obviously you can add it and I don't get any errors, but I have no way of knowing if its actually working.
     
  4. SuperNeon

    SuperNeon

    Joined:
    Mar 16, 2014
    Posts:
    85
    You're right there is no info about that.
    In the source code it seems ok to use the channel in ClientRpc.

    I guess we need an official answer ^^