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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2021.1):
Does no longer reproduce with: 2021.1.0b7, 2021.2.0a4