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
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
- PolySpatial “Trying to set shader on a Material Variant.” error is printed in the console when entering Play Mode
- Error “Shader error in 'YSCloudCover': call to 'tex3D' is ambiguous at Assets/YSCloudCoverText.shader(606) (on d3d11)“ is present when compiling tex3D shader with DXC
- Placeholder asset is not loaded with Advertisement Legacy sample when using the latest version of the package
- Addressables content build fails but the Player build is successful when building a development build
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a19