Search Issue Tracker
Fixed in 2022.3.8f1
Fixed in 2023.2.0b5
Votes
0
Found in
2022.3.5f1
2023.1.4f1
2023.2.0a23
Issue ID
UUM-42835
Regression
Yes
Different Serialization layout is used when script is outside of the parent class Assembly
Reproduction steps:
1. Open the attached project “SerializationBug“
2. Build and run the Player (File>Build and Run)
3. Observe the Player logs
Expected result: Player runs without any errors
Actual result: Error is logged “A scripted object (probably IntInerited?) has a different serialization layout when loading. (Read 48 bytes but expected 52 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?“
Reproducible with: 2022.3.5f1, 2023.1.4f1, 2023.2.0a23
Not reproducible with: 2021.3.28f1
Reproducible on: Windows 11
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
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Different text alignment in the column header in Entities "System" window
- Objects with Universal Render Pipeline/Particles/Lit shader are always lit up when changing their Rendering Layer Mask
Resolution Note (fix version 2022.3.8f1):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-28069
Resolution Note (fix version 2023.2.0b5):
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-28069