DontDestroyOnLoad NetworkManager Bug 5.5.0f3

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).

Dear Unity user,

Thanks for reporting the issue.

We have fixed this bug in the latest version of Unity (5.6.0b3, which will soon be available).
If you are still able to reproduce it on the latest version, please respond to this email.

We highly appreciate your contribution. If you have further questions, feel free to contact us.

Best regards,
Denisas Kirilovas
Unity QA Team

Blockquote
boxels · Dec 22, 2016 at 05:36 PM 0 Share

Come to find out, it had NOTHING to do with our version of Unity and everything it seems to do with starting the project in WINDOWS Unity and copying the project files to use with MAC Unity.
We are now testing in Windows (the OS-Unity setup we originally built the game in)… and so far ZERO bugs, ZERO issues. So this suggests that you CANNOT copy a project from one OS to another and have it work seamlessly.
We are talking about many issues: networking not working graphics super laggy UNET problems strange errors that were fixed many patches ago…

Blockquote

This problem has nothing to do with “MAC Unity” I am using Windows version and have the exact problem.