Search Issue Tracker
By Design
Votes
0
Found in
2021.3.34f1
2022.3.18f1
2023.2.7f1
2023.3.0b4
Issue ID
UUM-61444
Regression
No
Rect Transform values get reset when creating a Canvas Prefab through the Project Window
Reproduction steps:
1. Open the attached "BrokenCanvasPrefabVariants" project
2. In the Project window, right click on the "Canvas" Prefab and select Create -> Prefab Variant
3. Click on the created Prefab to open its' Inspector window
4. Observe the results
Expected results: Rect Transform values do not get reset
Actual results: Rect Transform values get reset
Reproducible with: 2021.3.34f1, 2022.3.18f1, 2023.2.7f1, 2023.3.0b4
Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested
Notes:
- This does not happen when creating a Prefab Variant by dragging from the Hierarchy window
- When creating the Prefab Variant an "Assertion failed on expression: 'modifications.empty()'" error appears in the Console
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Look Dev errors are spammed when opening a new HDRP project when Look Dev was added to the layout in the previous project
- URP Scene Templates are not editable when first opened from the New Scene dialog
- Look Dev window flickers when resizing the window after docking it
- UI breaks when Multiplayer Center window section divider is moved too far
- Adaptive Performance documentation link leads to outdated package documentation when the documentation hyperlink is pressed in the Project Settings window
Resolution Note:
When creating Prefab Variants we have decided that the Prefab Variant has default overrides set like Prefab instances has. And we have decided to clear the overridden position to (0,0,0) by default for Prefab Assets.
If you want to use the base Prefab position for the Variant then you can right click on the root Position in the Inspector and select Revert in the context menu. Then the Variant prefab will inherit whatever position the base prefab has.
Note: We will fix the assertion error in the Console mentioned in the bug report.