Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2019.4
2020.3
2021.1
2021.1.3f1
2021.2
Issue ID
1342482
Regression
No
"Unknown managed type referenced" error appears when object contains SerializeReference that is missing
How to reproduce:
1. Open the user's attached project and SampleScene scene
2. In the Hierarchy window, select GameObject
3. In the Inspector window, in the Thing dropdown select D
4. In the Project window, open the NewBehaviourScript.cs and comment out the line #17 (definition of class D)
5. Observe the error in the Console window and the value of the Thing dropdown (value is null)
6. Reimport any of the scripts and observe the Console window (the error appears again even though the value is null now)
7. In the Thing dropdown select A and reimport any script again
8. Observe the Console window
Expected result: the error "Unknown managed type referenced: [Assembly-CSharp] .D" appears and the Thing value resets to null
Actual result: there are no errors
Reproducible with: 2019.4.28f1, 2020.3.13f1, 2021.1.13f1, 2021.2.0a18
Not reproducible with: 2021.2.0a19, 2021.2.0b1
Could not test with: 2018.4.36f1 (SerializeReference errors)
Note: If class D is uncommented in the script, the Thing field value is set to D again
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
- Profiler - Taking you to the wrong section when using 'show'
- Draw Renderers custom pass doesn't work with SSGI
- WebCamTexture does not set the requested resolution when used in WebGL
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a19