Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.3.0b8
2018.3.0f2
2019.1.0a6
2019.2.0a1
Issue ID
1125200
Regression
Yes
Reparenting RectTransform with worldPositionStays=false still modifies anchoredPosition w. rounding errors
Note: See comment further down in case for repro without Prefabs.
How to reproduce:
1. Open the attached project ("Canvas Rect Transform issue.zip")
2. Open the "case_1125200-Panel" prefab and change the parent Canvas's Rect Transform Right position to 0.4
3. Save and Close the Prefab mode
4. Reopen the Prefab and observe its Rect Transform Right and Left positions
Expected result: The Transform's Left value is unchanged and the Right value is correctly saved as 0.4
Actual result: The Transform's Left value is shown as "-1.220405e-05" and the Right value is shown as "0.4000122"
Reproduced in: 2019.2.0a4, 2019.1.0b3, 2019.1.0a6, 2018.3.5f1, 2018.3.0b8
Not reproducible in: 2019.1.0a5, 2018.3.0b7
Note: The shown value changes appear to be visual only and don't affect the actual position
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 GizmoDrawingPhysics2D::DrawCompositeCollider2DGizmo when opening a Scene that has corrupted GameObjects with Tilemap Components
- Scrolling vertically and horizontally is very fast when in Play Mode and RuntimeInputBackend is set to UIToolkitInputBackendOption.Default
- Crash on MemoryProfiler::UnregisterAllocation when initializing entities and leaving Play Mode with Occlusion Culling enabled
- Crash on mdb_page_alloc when opening a project that was running while the PC shut down
- macOS Player freeze when using RunInBackground and Command+Tabbing to and from the application
Resolution Note (2019.2.X):
issue is with float math with Vector2f. without introducing rounding which is not desirable there isn't much we can do.