Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Reconnection mid-game : are non-server owned NetworkObject auto-spawned ?

Discussion in 'Netcode for GameObjects' started by edin97, Dec 29, 2022.

  1. edin97

    edin97

    Joined:
    Aug 9, 2021
    Posts:
    58
    Hello,

    Let's say we have at least 3 clients, 1 is host. If a non-host client disconnects and reconnects, I know all the server(host) owned NetworkObjects are (automatically) spawned again on the client that reconnected (tested with 2 clients, 1 was host). But I use steam as my transport, it's kind of a long process to test these things with 3 clients, so does anyone know if all the non-server owned NetworkObjects are spawned on the reconnected client ?

    For example : the 3rd client that never left owns a player NetworkObject, is that player automatically spawned on my reconnected client ? Thanks in advance !