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
- D3D12 MainLight Shadowmap clear incorrectly when using UWP
- Crash on ShaderPropertySheet::SetTexture when changing color space on a specific project
- "ENABLE_INPUT_SYSTEM" flag is true even when the "InputSystem" package isn't installed
- The "ModifiableContactPair.IgnoreContact" method does not work
- Tooltips are shown in the random place when there is not enough space for it above the element
Add comment