Unity Issue Tracker - Prefab's field custom serialization is incorrect when the field is overridden
Closed
UUM-12986
Prefab's field custom serialization is incorrect when the field is overridden
Unity: Serialization
As Designed
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
This is because the main scene contains an override of the scene name and these overrides don't update automatically.
You need to remove the override and maybe set it again after changing the scene name
Reproduction steps:
1. Open the “IN-14866_OverridenFieldSerialization“ project and open the “Main” scene
2. Rename the “B” scene to “B2”
3. Enter the Play mode and observe the Console
Expected result: “Serialized _scene = B2 (object = TestPrefab)“ was logged
Actual result: “Serialized _scene = B (object = TestPrefab)“ was logged