Search Issue Tracker
Won't Fix
Votes
1
Found in
5.4.0f3
Issue ID
825232
Regression
No
[Serialization] Object reference becomes undefined when struct is serialized directly
Steps to reproduce:
1. Open attached project
2. Open scene "Main"
3. Run it
4. Notice NullReferenceException - it's caused when struct is serialized directly
Workaround/Works when serializing struct as a field
Reproduced with: 5.3.1f1, 5.3.6p3, 5.4.0p2, 5.5.0a6
No JsonUtility in 5.2 so couldn't test
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
- UIToolkit Label color gradient is removed when Outline Width is set to anything other than 0
- The selector disappears in the Project Window when selecting anything in the Inspector Window
- VFX Graph Properties are not rearrangeable when in a Category
- Search Window does not reload when applying labels to assets
- Crash on memcpy in CachedWriter when building a certain project
Resolution Note:
This particular case has been investigated thoroughly and we have decided, in the interests of protecting the stability and features of Unity for users that rely upon the affected versions, to not address this fix for the time being. We understand that this will cause problems for some users, and so may address in a future version.