Search Issue Tracker
Fixed
Fixed in 2021.3.6f1, 2022.1.6f1
Votes
0
Found in
2021.3.3f1
2022.1.1f1
Issue ID
UUM-863
Regression
No
[Backport] The Rect Transform and the Anchor Preset of a nested Canvas gets reset when parent Canvas is disabled and enabled
How to reproduce:
1. Open the attached project "case_1374782.zip"
2. Open Scene "SampleScene"
3. In the Hierarchy window drag "inner" GameObject into the "Canvas" GameObject
4. In the Inspector, under "Rect Transform" choose center-middle Anchor Preset
5. Disable and enable the "Canvas" GameObject
Expected result: the "inner" GameObject Rect Transform is the same as from before the enable/disable and the Anchor Preset is center-middle
Actual result: the "inner" GameObject Rect Transform is different and the Anchor Preset is set back to left-bottom
Reproducible with: 2019.4.32f1, 2020.3.22f1, 2021.1.28f1, 2021.2.1f1, 2022.1.0a14
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
- [VisionOS] Material swap does not work for bake to mesh particle system mode
- ScriptableObjects lose the variables added through the Awake() method when the ScriptableObject is selected for the first time
- [Search] NullReferenceException on selecting Search > Scene scenes
- Errors are thrown when selecting a Sprite with a custom default TextureImporter Preset
- The non-zero value is changed to 0 when entering it for the first time into the IntegerField with showMixedValue set to true
Resolution Note (fix version 2022.1.6f1):
Fixed in: 2022.1.6f1