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
- EditorGUILayout.PropertyField foldout icon inside Vertical Layout Group has an incorrect indent when used with OnInspectorGUI()
- [Android] [iOS] "NullReferenceException: Object reference not set to an instance of an object" throws when entering the Play Mode/opening the application
- The Player freezes on load when building Web platform
- Animator "Conditions" tab breaks when the only Parameter is deleted and another one is created
- "Shader error in 'Universal Render Pipeline/Lit': maximum ps_5_0 sampler register index (16) exceeded" error thrown after a build is completed when the "LOD Cross Fade" parameter is enabled
Add comment