Unity Issue Tracker - NaN values in Rect Transform when the anchor is set to stretch and all the Rect Transform fields are set to 0
Closed
UUM-42921
NaN values in Rect Transform when the anchor is set to stretch and all the Rect Transform fields are set to 0
Unity: uGUI
Won't Fix
2023.2.X
2023.1.X
2022.3.X
2021.3.X
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.
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