Prefab Variant does not get updated when changes are made on "OnValidate" method
Unity: Serialization
Fixed
6.7.X
6000.7.0a6
6.6.X
6000.6.0b10
6.5.X
6000.5.10f1
6.3.X
6000.3.23f1
Won't Fix
6.4.X
6.0.X
6.4 is not supported, the updated documentation will land in all fixed versions.
Backporting the documentation update to 6.0 is not viable
How to reproduce:
1. Open the “PrefabVariantOnValidate.zip“ project
2. Open the “Prefab” and “Prefab Variant” in Notepad
3. Observe that there are no mentions of “m_serializedGuid“ in any file
4. Select the “Prefab” in the Project tab
5. Add the “Prefab Guid“ Script Component in the Inspector
6. Select the “Prefab Variant” in the Project tab and observe that there is a “Prefab Guid“ Script Component attached, and the GUIDs are different on both the “Prefab” and the “Prefab Variant”
7. Save the changes, and search for “m_serializedGuid“ in the opened Notepad for both the Prefab and the Variant
Actual result: Prefab has a serialized property “m_serializedGuid”, while the Prefab Variant does not
Expected result: Both the Prefab and its Variant have the “m_serializedGuid” serialized properties