#DontDestroyOnLoad on NetworkManager getting destroyed throughout scenes

2 messages · Page 1 of 1 (latest)

covert kestrel
#

It's it the original one in ddol scenes being kept and the one in the offline scene one (being the latter and thus duplicate this time) being destroyed?

vernal basin
#

Network Manager is pushed out of DDOL whenever the client disconnects and is going to be loading the assigned offline scene, so that the old one is abandoned and you get the fresh new one in the offline scene without conflicting.

  • Don't cache refs to network manager anywhere. Use NetworkManager.singleton everywhere.
  • If you made a custom network manager from our script template, use that singleton, e.g. CustomNetworkManager.singleton.