Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#
Method group is Obsolete

NetworkManager.dontDestroyOnLoad

Obsolete public bool dontDestroyOnLoad;

Description

A flag to control whether the NetworkManager object is destroyed when the Scene changes.

This should be set if your game has a single NetworkManager that exists for the lifetime of the process. If there is a NetworkManager in each Scene, then this should not be set.

Did you find this page useful? Please give it a rating: