Reputation: 7324
I have a scrollview.Horizontal and vertical scrollbars are removed because it is ugly and I have space constraint.
When I populate items into content of the scrollview as shown in the image
I can't scroll. The view is moving but doesn't scroll. When I scroll, just scroll to some extent and scroll back to the original position.
What could be wrong?
Upvotes: 11
Views: 26742
Reputation: 2252
I also had that problem and got it fixed by adding a Graphic Raycaster
component to my element that had the Canvas
component (the parent element to the Scroll View
).
Upvotes: 0
Reputation: 1167
Make sure that the Height
parameter in the Content
object is not equal to zero:
What happens when you press play:
Now let's set Height
to something much bigger than zero:
Here is what we get when we press play this time:
(The scroll bar appeared!)
Credit: Unity scrollview can't scroll to the end
Upvotes: 1
Reputation: 121
Upvotes: 12