Search Issue Tracker
Won't Fix
Votes
1
Found in
5.4.0f3
Issue ID
966152
Regression
No
Directly serializing Matrix4X4 with JsonUtility yields different results than serializing a class with Matrix4X4 member
To reproduce:
1. Open the project, attached by the user (JsonSerializationBugTest.zip)
2. Open the "TestScene"
3. Enter Play mode
4. Observe the console
Expected: Matrix4X4 members are named the same regardless of whether the ToJson method serialized the Matrix4X4 directly or it serialized a class with a Matrix4X4 member
Actual: If Matrix4X4 is serialized directly, its members in the .json file will be named m00, m10, m20..., however, if a class is serialized which has a Matrix4X4 member, the matrix's member's names will be e00, e10, e20
Reproduced in 5.4.0f3, 5.5.5p1, 5.6.4p2, 2017.1.2p2, 2017.2.0p1, 2017.3.0b8, 2018.1.0a3
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
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Tags window completely breaks and throws Exception errors when Adding a Tag to a GameObject
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
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.