Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.2.0f3
Issue ID
959413
Regression
No
Scroll Rect content position changes after Canvas scale is animated
To reproduce:
1. Open attached Unity project "Systemicon.zip"
2. Open "Shooter Mechanic" scene
3. Go into Play mode
4. In the Hierarchy, navigate to Player --> Head --> Player UI Camera(Clone) --> Canvas --> Inventory --> Items In Category --> Viewport --> Content
5. Hold alt to make your cursor appear and click "inv" button to close the inventory.
6. Inspect Left and Right input fields in Content's Rect Transform component
7. Keep opening and closing the inventory
Result: Once the inventory is closed (UI scale.x is set to 0 through animation) , Content's Left and Right input fields' values will change to a random number. Open it again, the Left and Right values will again change to a random number, but with some sort of boundaries. After a random amount of inventory closing, upon opening it again the Left and Right values will not change to a fit in the UI thus it appears as though the items in the inventory have disappeared (see attached gif "UIscale.gif")
Reproduced on: 5.6.4p1, 2017.1.2p2, 2017.2.0p1, 2017.3.0b7
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
- Fog "Density" field dragging is too sensitive
- Webpage from example hyperlink is missing when opened in the Universal 3D sample template
- Console window loses focus of the last message when a lot of messages are shown in a row
- Shadow artifacts appear when using a merged mesh with a specific Near Plane value in the Play Mode in URP
- "TlsException: Handshake failed - error code: UNITYTLS_INTERNAL_ERROR" error when a lot of web requests are sent within a few minutes
unity_iLxAeHlWxpIIXw
Apr 01, 2019 11:19
check this link it will help you
https://github.com/CG-Tespy/Unity-RectTransform-Preset-Utils