Search Issue Tracker
Fixed in 5.3.0
Votes
0
Found in
5.2.1f1
Issue ID
734112
Regression
Yes
[NetworkIdentity] Object with NetworkIdentity ignores DontDestroyOnLoad()
Repro steps:
1) Open the project and LobbyScene
2) Hit play and select LAN Host
3) Notice NetworkDontDestroyOnLoadObject in the Hierarchy window, which has a script with DontDestroyOnLoad function
4) Hit Ready/Not Ready button in the Game view and notice that the NetworkDontDestroyOnLoadObject was destroyed
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
- Editor freezes on "Open Project: Register Scripts" Unity's code execution when opening a project
- [Android] The Player crashes with a "JNI ERROR (app bug)" error when the global reference table gets overflowed by BillingClientStateListener
- Mesh normals look inverted when the Entities SubScene is disabled
- Prefab Overrides and blue marker stays when applying Overrides
- Menus and buttons in the Toolbar do not change colour together with the "Playmode tint" setting when it is changed during Play mode
angusmf
Dec 07, 2015 13:44
Is the object really destroyed? I'm seeing this issue (seemingly) with the network lobby beta project, however, if you add a debug message to OnApplicationQuit, you can see the object is actually still there, but doesn't appear in the hierarchy.