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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
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.