Search Issue Tracker
Fixed
Fixed in 1.0.0
Votes
4
Found in [Package]
1.0.0-pre.6
Issue ID
NCCBUG-135
Regression
No
MissingReferenceException spam after deleting a GameObject with NetworkRigidbody component before its parent with NetworkObject
Reproduction steps:
1. Open the user's attached project "NGO-bug-reporting.zip"
2. Enter Play mode
3. Select "NetworkManager" under "Don't Destroy On Load" in the Hierarchy window
4. Click "Start Host" in the Inspector window
5. Delete "NetworkRigidbody" in the Hierarchy window
6. Delete "NetworkObject" in the Hierarchy window
Expected result: No errors in the Console window
Actual result: Error spam in the Console window:
MissingReferenceException: The object of type 'NetworkTransform' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
Reproducible with: 1.0.0-pre.4, 1.0.0-pre.5 (2020.3.30f1), 1.0.0-pre.6 (2020.3.30f1, 2021.2.15f1, 2022.1.0b11)
Could not test with: 2019.4.36f1 (Package is not available), 2022.2.0a7 (Missing "U Net Transport" Script)
Notes:
1. Not reproducible if the child only has a NetworkTransform component
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Discussions] "NativePassData.GraphPasses()" has GC Alloc of ~256 B when using Render Pass
- Setting Shader Graph to Surface Type "Transparency" and Render Face "Both" breaks the preview
- Warning "Unknown pseudo class "multiline"" is logged when the Animator is loaded or in use after picking Motion in a States Inspector
- Deleting the property in the Blackboard and then creating the different type property with the same name throws an error
- Selector gets stuck in UI if scroll is used while dragging
Add comment