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