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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Ubuntu] Mouse cursor is set box select mode after exiting VFX Graph's Rename Context function
- Unrecognized identifier DECLARE_STACK_CB error is thrown when VirtualTexture Property is used with Custom RenderTexture target
- SpriteShapeController.OnWillRenderObject() is ~20 ms when using SpriteShapeController.BakeMesh() and never updating the spline
- Editor freezes briefly when "multi-selecting" TextMeshPro GameObjects In the Hierarchy window in Prefab Mode, if 5 or more Inspector windows are open
- OnEndDrag event not triggered when losing Editor focus during simultaneous Left and Right mouse drag
Add comment