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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a19