Search Unity

Question Network message priority and ordering

Discussion in 'Netcode for GameObjects' started by cerestorm, Mar 16, 2022.

  1. cerestorm


    Apr 16, 2020
    I was after some clarification on what prioritisation there is (if any) in ordering for messages between server and client for the following events:
    • Object spawning
    • NetworkVariable and NetworkList updates
    • RPC's
    • Custom messages
    • Anything else I missed
    I ask because I see order when developing locally, for example objects appear on the client in the order they're spawned on the server, but network variable updates on the client aren't in the same order as they're made on the server.

    Developing locally is leading me to make assumptions on when certain network events will occur, I don't want to rely on this in case once the server is deployed remotely my assumptions are wrong and I get all kinds of race conditions.

    Any clarification on this would be really useful, thanks.