- Home /
ScrollRect viewport issue
Using a ScrollRect for the first time, while I got it to work and resize the contents and parent properly, I can't seem to find how to make it so that the ScrollRect is only visible within a specified RectTransform. I was under the impression that the Viewport attribute would be responsible for this.
I've set up my ScrollRect as follows:
Right now the contents container object is stretched beyond the screen dimensions and so when I'm scrolling I see the entire visible part of the content object, even though I have set the Viewport's RectTransform like the red area in the picture below. How can I make it so that the ScrollRect is only visible within the marked area?
Your answer
Follow this Question
Related Questions
Scroll view won't scroll all the way down to last bit of content 0 Answers
Scroll view/rect broken on Android only 0 Answers
Make Scroll View size fitting to children size in one dimension 0 Answers
Why is everything in my Scroll View Viewport transparent? 2 Answers
Adding a button to the content of the viewport in a scroll view through code? 0 Answers