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.

Bug Lost/Out-of-order NetworkVariable updates?

Discussion in 'Netcode for GameObjects' started by daniel_lochner, Jul 18, 2021.

  1. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    146
    Hi there,

    How do we enforce ordering on
    NetworkVariables
    ? I tried changing the
    SendNetworkChannel
    to
    TimeSync
    and
    SyncChannel
    , but no luck so far.

    The documentation is also very limited, so I'm not quite sure where to look for help.

    Thanks.
     
  2. luke-unity

    luke-unity

    Unity Technologies

    Joined:
    Sep 30, 2020
    Posts:
    306
    I think I answered this on Discord already. Setting the channel to a reliable sequenced channel like `ReliableRpc` should ensure order.
     
  3. daniel_lochner

    daniel_lochner

    Joined:
    Jun 9, 2016
    Posts:
    146
  4. luke-unity

    luke-unity

    Unity Technologies

    Joined:
    Sep 30, 2020
    Posts:
    306
    No update yet sorry, we reshuffled a bunch of things around OnValueChanged, so not sure if this issue will still be around in the next release. It's currently in our backlog and we'll have to check whether it's still an issue.
     
unityunity