Search Issue Tracker
Fixed in 2021.1.X
Duplicate in 2020.3.X
Votes
0
Found in
2020.1.0a1
2020.2
2020.2.0f1
Issue ID
1314751
Regression
Yes
Inspector throws errors and stops displaying fields when changing SerializeReference instance with UnityEvent field of same name
How to reproduce:
1. Open the attached project
2. Open SampleScene
3. Click on Test in the Scene Hierarchy
4. Click Change To My Class 1
5. Click Change To My Class 2
Expected result: SerializeReference class is changed and the same fields are displayed in the inspector
Actual result: Errors are thrown to the Console and Inspector stops displaying fields
Reproducible with: 2020.1.0a1, 2020.2.5f1, 2021.1.0b6, 2021.2.0a1, 2021.2.0a3
Not reproducible with: 2019.4.19f1, 2021.1.0b7, 2021.2.0a4
Could not test with: 2018.4.30f1 (no Serialize Reference attribute)
Notes:
1. Unity 2019.4.19f1 Inspector does not display Unity Event fields at all
2. Unity 2020.1.0a1 Clicking on the object will cause a Fatal Error
3. Unity 2021.2.0a3 will crash on start
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
- Flickering bright white dots in the Scene when the Android Platform is selected and DX11 Graphics API is used with Iris(R) Xe Graphics GPU
- Inconsistent capitalization and misaligned text in multiple query blocks in Search window
- “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
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note (fix version 2021.1):
Does no longer reproduce with: 2021.1.0b7, 2021.2.0a4