Search Issue Tracker
Fixed
Fixed in 2022.3.8f1, 2023.1.9f1, 2023.2.0b5, 2023.3.0a1
Votes
5
Found in
2022.2.7f1
2023.1.0b4
2023.2.0a4
Issue ID
UUM-28069
Regression
Yes
Multiple errors are displayed in the Player when using Serialized Generics
Steps to reproduce:
1. Open the attached project “IssueProject“
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Navigate to File > Build Settings
4. Enable Development Build
5. Build And Run the project
6. Observe the Player
Expected result: No errors are displayed
Actual result: The following errors are displayed “A scripted object (probably GenericSerializationTest?) has a different serialization layout when loading. (Read 48 bytes but expected 88 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?“
Reproducible with: 2020.3.32f1, 2022.1.0a4, 2022.1.24f1 2022.2.7f1, 2023.1.0b4, 2023.2.0a4
Not reproducible with: 2021.3.19f1
Fixed in: 2020.3.33f1
Couldn’t test with: 2022.1.0a3 (unable to resolve the “'C:/Program' is not recognized as an internal or external command,
operable program or batch file.“ error)
Reproducible on: Windows 10
Note: Look at the attached video (“IssueVideo“) for clarity
-
Pitou22
Jul 24, 2023 23:11
See also a duplicates from this issue: https://issuetracker.unity3d.com/issues/different-serialization-layout-is-used-when-script-is-outside-of-the-parent-class-assembly
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2023.3.0a1):
Fixed in: 2023.3.0a1