I’m trying to get my screen to vertically scroll, draggable for now and maybe with a scroll bar at some point but I can’t get it to work.
I’ve created an image that I’ve got a scrollRect component attached to. I’ve put all my game stuff in a panel called “GamePanel” and I’ve set that as the content for the scrollRect. I’m not using a viewport because I don’t need any masking.
Here’s a screen shot of my setup.
But when I run and try to drag, the content just jumps down and then won’t move. I presume it’s being clamped to that point but I don’t see how or why. I’ve made the scrollRect dimensions larger than the content as you can see in the screenshot.
Any ideas?
Here’s another screen shot relating to the answer below.



I tried this but it hasn't made any difference. I've attached a screen shot to the above question showing what I've done. But how would does making the scrollImage the scroll content make the GamePanel scroll? it's the GamePanel which I need to scroll, that's the object that contacts all the game images/text. The scrollImage I was just using as a container for the GamePanel to scroll within.
– BiggerplayI did it! All I had to do was in my original structure, make my GamePanel a child of the ScrollImage (with the ScrollRect component still on the ScrollImage object). Thanks.
– Biggerplay