Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X

Votes

0

Found in

2022.3.61f1

6000.0.46f1

6000.1.0b14

6000.2.0a8

Issue ID

UUM-102690

Regression

No

Rect Transform values are set to NaN when scaling UI element with centered scaling

-

How to reproduce:
1. Create and open a new project
2. Create a Button, right click in the Hierarchy and go to UI > Button - TextMeshPro
3. In the Inspector, Rect Transform component, change Pivot X and Y values to 1
4. Select “Rect Tool” from the Tools overlay, in the Scene view
5. Make sure pivot mode in the Tool Settings is set to Pivot
6. Click and hold one of the Button's corners
7. Press and hold Alt key
8. Drag the Button’s corner
9. Observe the Scene view, the Inspector and the Console

Expected results: Button is resized, values in the Rect Transform component change accordingly, no errors in the Console
Actual results: Button disappears, values in the Rect Transform component are changed to NaN, error is thrown in the Console

Reproducible with: 2022.1.0a1, 2022.3.61f1, 6000.0.46f1, 6000.1.0b14, 6000.2.0a8

Reproducible on: Windows 11
Not reproducible on: No other environments tested

Notes:
- To reproduce the issue any one (or both) of the Pivot’s X or Y values has to be 0 or 1
- Some corners do not reproduce the issue, depends on the Pivot X and Y values combination
- Some properties are also set to NaN in the Rect Transform component for all children of the UI element
- Undo only reverts changes in the UI element’s Rect Transform component, does not revert changes in children

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.