Search Issue Tracker
Duplicate
Votes
0
Found in
2019.3
2019.3.0f6
2020.1
Issue ID
1219332
Regression
No
[SerializeReference] fields of classes derived from System.Object invalidate other serialized fields in Prefab instances
Steps to reproduce:
1. Open the attached project (case_1219332.zip)
2. Enter Play Mode
3. Observe that hashes match for all objects as logged through the Console (most importantly, "Reference Object Hash" & "Child Object Hash")
4. Open TestScript.cs
5. Uncomment line 12
6. Enter Play Mode
Expected result: Hashes match and serialized field of each instance correctly points to its child (if "Reference Object Hash" line is not logged, compare the random number of each hash pair)
Actual result: Hashes do not match except for one and only one instance
Reproduced in: 2019.3.2f1, 2020.1.0a23
Cannot test with: 2017.4.37f1, 2018.4.17f1 (Serialization by reference unavailable)
Note:
- If EmptyClass is derived from UnityEngine.Object, the issue is not reproducible
- The issue is also not reproducible if EmptyClass is changed to System.Object in the [SerializeReference] field
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
- "Rendering Debugger" displays incorrect overdraw count when using "Unlit/Texture" shader
- Scene and Game views break when the Editor window is snapped with the Microsoft PowerToys
- Materials do not transfer texture when the "Shader" parameter is changed from "Unlit/Texture" to "Universal Render Pipeline/Unlit"
- [Linux][Vulkan] Crash when opening searchable dialog
- The "Shader error in 'AE/Leaves': "Undefined punctual shadow filter algorithm"" error appears when build completes on a specific project
This is a duplicate of issue #1198546