Search Issue Tracker

Fixed

Fixed in 2022.1.X, 2022.1.4f1

Votes

0

Found in

2022.1.3f1

Issue ID

UUM-12798

Regression

Yes

Child Canvas gets parameters set to zero when upgrading Unity version

uGUI

-

1. Create a new project in any of 2019, 2020, or 2021 Unity streams version
2. Create a new UI Canvas
3. Create another UI Canvas
4. Make the second Canvas a child of the first one
5. Create a prefab from the main Canvas
6. Upgrade the project into Unity 2022.1.0a6 - 2022.1.3f1
7. Select the child Canvas in the Hierarchy

Expected result: Canvas parameters are the same as in the previous version
Actual result: Canvas scale, pivot, and anchors are all reset to zero

Reproducible with: 2022.1.0a6, 2022.1.3f1
Not reproducible with: 2020.3.38f1, 2021.3.7f1, 2022.1.0a5, 2022.1.4f1, 2022.1.11f1, 2022.2.0b3, 2023.1.0a4

Reproduced on: macOS Monterey 12.4 (Intel)

Notes:
- This only happens if the main UI canvas is saved as a prefab, it doesn't happen when it's not a prefab, and it only affects the child nested UI canvas
- If one changes the values of the canvas and tries to save the prefab, it will automatically revert to the corrupted values

Add comment

Log in to post comment