Search Issue Tracker
Won't Fix
Votes
2
Found in
2021.3.28f1
2022.3.4f1
2023.1.4f1
2023.2.0a23
Issue ID
UUM-42921
Regression
No
NaN values in Rect Transform when the anchor is set to stretch and all the Rect Transform fields are set to 0
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/Game.unity” Scene
3. Expand the “Canvas” GameObject in Hierarchy
4. Select “PlayArea” GameObject
5. Observe its Rect Transform values in the Inspector window
Expected result: Correct values are seen
Actual result: NaN values are seen
Reproducible with: 1.0.0 (2021.3.28f1, 2022.3.4f1, 2023.1.4f1), 2.0.0 (2023.2.0a23), 3.0.0-exp.1 (2023.2.0a23)
Testing environment: Windows 10 Enterprise 21H2
Notes:
- Reproduces only if the anchor is set to stretch and all the fields in Rect Transform are set to 0. After that Project has to be reopened
- When trying to change the NaN values, It did not work
- Still shows NaN values when Platform is changed to Windows Standalone
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:
Something got corrupted in the components and saved with NaN. Change the anchor, set back to zero and change the anchor again and it's fixed.