Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0a6
2018.3.0b8
Issue ID
1096795
Regression
Yes
Prefab data does not override when changes are made in Rect Transform
How to reproduce:
1. Open project "Rect0b10.zip"
2. Delete "SubCanvas" from the Hierarchy
3. Enter Play Mode and check SubCanvas(Clone) Rect Transform (Should be Bottom-Left)
4. Exit the Play Mode
5. Drag "SubCanvas" prefab from UI folder to Canvas in Hierarchy, making "SubCanvas" child prefab
6. Change Rect Transform to Strech-Strech
7. Delete "SubCanvas" prefab from the Hierarchy
8. Enter Play Mode again, check the "SubCanvas(Clone)" Rect Transform
Expected Result: The changes, that were made when "SubCanvas" was in Hierarchy have had overridden the Rect Transform change.
Actual Result: Changes have not been overridden and Rect Transform stayed "bottom-left".
Reproduced with: 2018.3.0a6, 2018.3.0b1. 2018.3.0b10, 2019.1.0a9
Notes: Does not reproduce in 2018.2 and 2018.3.a01 - 2018.3.a05. There was an "Apply" button that applied the changes, now it simply does not override.
The video was made by the user.
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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Resolution Note:
Default override properties do not propagate to Prefab instances, including the instance of a base Prefab inside a Prefab Variant. See the documentation section "Alignment is specific to Prefab instance":
https://docs.google.com/document/d/1MjxUjT1krD4iB91kKpUIAF7NMr3gUrvo5x3EXi9AGbw/edit#heading=h.hq5our40rul5