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
Comments (1)
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
- Crash on "The GUID inside 'Assets/asset.png.meta' cannot be extracted by the YAML Parser." when opening the project
- Shadows disappear when looking at a certain angle in Scene view and using Cloud Shadows with Volumetric Clouds
- StackOverflowException freezes or silently crashes the Editor
- Microsoft Surface Device freezes when detaching and reattaching physical keyboard attachment to a Microsoft Surface device in Standalone Player for Windows
- Shadows are cast with artifacts on GameObjects when the light type is set to Point
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.