#DontDestroyOnLoad on NetworkManager getting destroyed throughout scenes
2 messages · Page 1 of 1 (latest)
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.singletoneverywhere. - If you made a custom network manager from our script template, use that singleton, e.g.
CustomNetworkManager.singleton.