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
Comments (1)
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
unity_iLxAeHlWxpIIXw
Apr 01, 2019 11:19
check this link it will help you
https://github.com/CG-Tespy/Unity-RectTransform-Preset-Utils