Reproduction steps:
1. Create a new 3D (URP) project
2. Close the Editor window
3. Move the “Library/PackageCache/com.unity.render-pipelines.core” folder to the “Packages” folder
4. In “package-lock.json” set “com.unity.render-pipeline.core” version to file:com.unity.render-pipelines.core
5. Open the project
6. Open the Graphics window (Edit > Project Settings > Graphics)
7. Open the Build Settings window (File > Build Settings)
8. Make sure “Development Mode” is enabled
9. Press “Build And Run” button
10. Observe the Player Console output
Expected result: No errors are thrown
Actual result: Serialization errors are thrown: A scripted object (probably ...) has a different serialization layout when loading. Did you #if UNITY_EDITOR a section of your serialized properties in any of your scripts?
Reproducible with: 2023.3.0a18, 6000.0.21f1
Not reproducible with: 2021.3.44f1, 2022.3.49f1, 2023.3.0a17
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Note:
- This issue is closely related to [Internal link] case, but was deemed to be another problem.