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
- Shader Graph Swizzle Node Input/Output and Mask Update Incorrectly After Undo
- [URP] Crash on GameObject::QueryComponentByType when baking a Reflection Probe in an unsaved/untitled Scene
- No Icons are used for the Entry and Exit States in the Inspector when selected in an Animator Controller
- Crash on PlayerMain(int, char const**) when exiting Standalone Player with a Particle System in the Scene
- No Icon is used for the Runtime Animator Controller Type in a Search Window when assigning an Animator Controller in the Animator Component
Add comment