Search Unity

Creating a dynamic scrolling menu

Discussion in 'UGUI & TextMesh Pro' started by IK, Jun 6, 2016.

  1. IK

    IK

    Joined:
    Oct 29, 2012
    Posts:
    34
    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?
     
  2. crispybeans

    crispybeans

    Joined:
    Apr 13, 2015
    Posts:
    210
    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.
     
    IK likes this.