Creating a dynamic scrolling menu

Greetings, I’m working on a UI that needs a sidebar that fills up with various buttons and images (generated by script, with the exception of a header) and will scroll down when it has more than it can display. I believe I’ve got the objects setup in the editor right but when I need to expand the scrolling rect it all goes haywire. I’ve been trying to change the sizeDelta as I’ve seen in a few posts but that expands the rect in both directions. Is there a way to just increase size below the anchors?

Try setting the pivot point to the top of the “Content / Container” view and add your items to that. If you’re adding items dynamicly it can be abit tricky to get it nice.

1 Like