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
- [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
unity_iLxAeHlWxpIIXw
Apr 01, 2019 11:19
check this link it will help you
https://github.com/CG-Tespy/Unity-RectTransform-Preset-Utils