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
- Icon section shows incomplete message and unusable check box in Build Profiles and Player Settings window instead of “Not applicable for this platform” for Dedicated Server Platform
- Assets are created in the Package folders when creating assets via custom buttons in the Inspector window or other windows
- “Select” windows are named differently on Windows and macOS
- [Windows] No minimum “Select” window size
- Enabling “Editor Extension Authoring” in UI Builder doesn’t dirty the document and saving with shortcut doesn’t persist the state
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.