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
- The cursor moves into wrong place when renaming folder/asset
- Assertion error "(dx - width < padding) || (dy - height < padding)" when using Pack Preview
- [Memory Profiler] The EntryType.NativeAllocationSites_MemoryLabelIndex of snapshots only reports -1 or 0 instead of the MemLabel used for allocations made from any call site.
- [Vulkan] Artifacts appear in the Player when using Screen Space shadows with orthographic camera
- Errors OnGUIDepth changed & GUIUtility:ProcessEvent when opening Textures with Third Party App
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.