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
- Missing page when opening reference for Panel Text Settings
- PlasticSCM NullReferenceException on entering the Play Mode when Unity Version Control tab is added to the layout
- Shortcut Helper Bar does not appear when enabling it and disabling it
- "Property (urp_ReflProbes_BoxMin) exceeds previous array size" warning spams console after switching platforms
- Have to change Input Mapping Path twice for change to take effect when Auto-Save is enabled
Resolution Note (fix version 2021.1):
Does no longer reproduce with: 2021.1.0b7, 2021.2.0a4