Search Issue Tracker
Fixed in 2022.1.X
Votes
6
Found in
2019.4
2020.3
2021.1
2021.2
Issue ID
1216937
Regression
No
PropertyFields don't work properly with SerializeReference Fields
Reproduction steps:
1. Open user attached project "BugTests"
2. In SampleScene, select "TESTING"
3. In the Inspector, toggle between First and Second Reference button
4. Click Rebind Property
Expected Result: Switching between References updates the sub classes.
Actual Result: Sub classes do not update.
Reproducible with: 2019.4.28f1 (the field is frozen), 2020.3.13f1, 2021.1.13f1, 2021.2.0b1 (the field is not frozen but not updated/empty as well)
Notes:
- The propertyFields Freeze after the SerializeReference property they are bound to changes type. Rebinding the field to the property updates and unfreezes it.
- "SerializedProperty has disappeared" error is logged when switching references
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
- NullReferenceExceptions are being thrown when saving a ScriptableObject with an array of a type with a CustomPropertyDrawer that uses TrackPropertyValue
- Applied velocity is inconsistent when using Rigidbody AddForce() with ForceMode.VelocityChange
- Crash on AudioUtil_CUSTOM_HasAudioCallback when exiting Play Mode while the Inspector is displaying a GameObject with an empty script attached
- Scroll offset is framerate-dependent when scrolling with velocity in the Device Simulator
- "Object.FindObjectsOfType<T>() is obsolete" warning is thrown when using "Transitions Plus" asset
antonysze
Jun 18, 2022 03:27
I need this for 2021 LTS
silentslack
Feb 17, 2022 02:52
Ran into this on Unity 2020 LTS - can this fix be applied to Unity 2020 LTS?