Search Issue Tracker
Fixed in 5.5.0
Votes
0
Found in
5.5.0a3
Issue ID
812479
Regression
Yes
[Multiplayer] InvalidOperationException when select NeworkManager in Hierarchy for the first time
Doesn't happen in 5.4
Happens in 5.5.0a2 and a3
Happens only when you select NetworkManager object for the first time
How we can reproduce it using the example you attached
1 Open attached project
2 Open scene "sc1" and select in Hierarchy "MyNetworkManager" object
Actual result: exception will appear in console
"InvalidOperationException: The following game object is invoking the DontDestroyOnLoad method: MyNetworkManager. Notice that DontDestroyOnLoad can only be used in play mode and, as such, cannot be part of an editor script."
Expected result: no exception appears
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Building 3D Sample Scenes (URP) Project fails
- Alpha channel is disabled when Alpha Clip Threshold is set to 0
- The Physics 2D Profiler module does not display the information about processed physics in the scene when profiling the application as a Development Build
- A Script Component that has a serialized custom class is not detecting changes in the first boolean variable when entering the Play mode with the Script Components GameObject opened in the Inspector
- “SendMessage cannot be called during Awake“ warnings appear when loading a scene with “LoadSceneAsync“ if using UI Toolkit in the scene
boxels
Dec 21, 2016 13:08
Still not fixed, tracking same bug here:
http://answers.unity3d.com/questions/1288335/dontdestroyonload-networkmanager.html
boxels
Dec 20, 2016 19:11
This is not fixed, but continues to persist in Unity 5.5.0f3...