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
- The search icon in the "Searches" sections is blurry and inconsistent
- "RenderingCommandBuffer" error is thrown when switching to the tvOS platform
- Left side cog menu button is obstructed by the maximum Y value of the graph when editing a curve in the Particle System Curves
- "Property exceeds previous array size (64 vs 32)." warnings are thrown when switching from tvOS platform to a Standalone platform after restarting the Editor
- NavMeshAgent "breaks" when approaching a non-carved NavMeshObstacle
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a19