UI - Scrollable list of entries with text and images

I had thought this would be easy, but can’t find any forum posts or manual pages on how to do it. I’m trying to make a scrollable list of entries (similar to a game level selector) where each entry is a rectangular panel with a short text description and a graphic image, or possibly several images, and a button to select the entry. The list needs to scroll within a UI window since some lists will have three or four entries and each entry will need to be large enough to fit the text and images, so the whole thing may not fit within the screen.

1 Like

What part isn’t working? Basically you just make a scroll panel, and populate it with whatever you want. The scroll rect tutorial covers the basics, you can start there and just add more elements:

For one thing, my inspector display for the Scroll Rect doesn’t even have the same parameters as in the manual, so the latter must be out of date. Secondly, the video tutorial explains how to create a single image that can be scrolled, not a list of panels each with text, images, and a button. The manual implies that you can create a list of items by parenting each element to the “Viewport” GO, but the Viewport GO is referenced in the “View” parameter which doesn’t show up in my Inspector. I’m using Unity 5.0.1

1 Like

Its all the same. Instead of an image, just put whatever you want in the area.

I tried following the tutorial, but a number of things don’t work. Masking doesn’t work at all

After a lot of trial and error I finally got it to display properly, but it doesn’t scroll even after I made sure everything was set up according to what people on the forums said to do. Would my own mouse button handling script be interfering with this? I didn’t think it should.

Possibly, depends on what your script is doing.

The declared hight of the content area must be higher then content parent to scrollbar show up and work. You can assign the height via code in runtime to achive dynamic content windows.