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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a19