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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
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.