Search Issue Tracker
Fixed
Fixed in 6000.6.0a1
Votes
1
Found in
6000.0.62f1
6000.2.12f1
6000.3.0b10
6000.4.0a4
6000.5.0a7
6000.6.0a1
Issue ID
UUM-128055
Regression
No
Errors are thrown for lists and arrays in build using IL2CPP when data class contains both #if UNITY_EDITOR fields and generic fields
How to reproduce:
1. Open the 'EditorSerializationBug.zip' project
2. Build the project
3. Observe the Player.log
Expected result: No errors are thrown
Actual result: Errors are thrown
Reproducible with: 6000.0.23f1, 6000.0.62f1, 6000.2.12f1, 6000.3.0b10, 6000.4.0a4
Could not test with: 2023.1.0a1 (Unable to install IL2CPP), 6000.5.0a1 (Unable to build due to unfixable console errors)
Reproducible on: macOS 26.0.1 (M1 Max)
Not reproducible on: no other environments tested
Notes:
- Error message - 'A scripted object (probably Test?) has a different serialization layout when loading. (Read 40 bytes but expected 56 bytes) Did you #if UNITY_EDITOR a section of your serialized properties in any of your scripts?'
- Could not reproduce on Mono
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
Fixed in 6000.6.0a1
Resolution Note (fix version 6000.6.0a1):
Fixed in 6000.6.0a1