Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.44f1
2022.3.50f1
6000.0.23f1
6000.1.0a7
Issue ID
UUM-83769
Regression
No
Scroll bar fails to resize when content is dynamically removed in Player or Play Mode
Reproduction steps:
1. Open the attached project “ScrollBarTest.zip“
2. Open the “SampleScene“
3. Enter Play Mode
4. In the Game view, scroll with the scrollbar to the bottom of the “Scroll View” GameObject
5. In the Hierarchy Window, in the “Scroll View” → “ViewPort” → “Content” delete at least 4 Image GameObjects
6. Observe the result
Expected result: The scroll bar has re-adjusted its size according to the amount of objects present in the “Content” child GameObject of the “Scroll View”
Actual result: The scroll bar remains scrollable but scrolling has no effect on the “Scroll View”
Reproducible in: 2021.3.44f1, 2022.3.50f1, 6000.0.23f1
Reproducible on: MacOS 14.6.1 (M1 Pro), Windows 10, Windows 11 (user)
Notes:
* Ensure the Scroll View is scrolled to the bottom before deleting GameObjects
* For more obvious result, try to delete at least 6 Image GameObjects
* Also reproducible in Player
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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
Resolution Note:
For external changes made to the hierarchy, a workaround is to call `scrollRect.Rebuild(CanvasUpdate.PostLayout)`. This will update the scrollbars to match the new size of the content.
We appreciate your input and understanding, and please let us know if you have any other concerns or issues you would like to report in the future.