Search Issue Tracker
Active
Under Consideration for 6000.5.X
Votes
0
Found in
6000.0.67f1
6000.3.8f1
6000.4.0b8
6000.5.0a7
Issue ID
UUM-134473
Regression
No
Prefab Variant does not get updated when changes are made on "OnValidate" method
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
Reproducible in: 2023.1.0a1, 6000.0.68f1, 6000.3.9f1, 6000.4.0b9, 6000.5.0a7
Reproduced on: Windows 11 Pro (25H2)
Not reproduced on: No other environment tested
Notes:
- If any manual change is made to the Variant after step 5, the “m_serializedGuid“ will be shown in the Notepad as a modification, and only then
- If any change is made to the Variant, the Guid string field can be reverted, and if reverted, it will return to the value of the parent Prefab
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Add comment