Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

NetworkObject.Despawn() does not destroy the object for users that are connecting.

Discussion in 'Netcode for GameObjects' started by TestifyNow, Nov 11, 2022.

  1. TestifyNow

    TestifyNow

    Joined:
    Feb 9, 2016
    Posts:
    24
    The whole point of NetworkObject.Despawn() should be so that it destroys the object for all players. This should include players that have yet connected or are connecting to a lobby in progress. Doesn't make any sense otherwise, because as a developer you have to handle it yourself anyway, so you might as well not use despawn at all in it's current state.