ERROR:
InvalidOperationException: The
following game object is invoking the
DontDestroyOnLoad method:
NetworkManager. Notice that
DontDestroyOnLoad can only be used in
play mode and, as such, cannot be part
of an editor script.
UnityEngine.Networking.NetworkManager.InitializeSingleton
() (at
/Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkManager.cs:196)
UnityEngine.Networking.NetworkManager.UpdateScene
() (at
/Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkManager.cs:729)
UnityEngine.Networking.NetworkIdentity.UNetStaticUpdate
() (at
/Users/builduser/buildslave/unity/build/Extensions/Networking/Runtime/NetworkIdentity.cs:1074)
WARNING:
NetworkManager detected a script
reload in the editor. This has caused
the network to be shut down.
UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()
Video of Error:
(turn up quality so you can see details)
Supposedly this was fixed a few versions ago:
Unity Version: 5.5.0f3
We cannot get this same bug to occur in our developer’s Windows Unity 5.4.1f, it only occurs in our new version 5.5.0f3.
We have also tested in 5.4.3f1 on a MAC and it does not occur. So it seems to be related to the latest build. 5.5.0f3 (mac).