I’m new to Unity UI what I’m planning to have is a scrollable selectable list. When I select a list it will return a value in the input box. What UI element should I use?
That’s pretty vague, but the typical way to do a scrollable list would be something like:
-
Create UI → Scroll View
-
Expand Scroll View, then Viewport, and find the Content object. Give it some kind of Layout Group component (such as a Vertical Layout Group, Horizontal Layout Group, or Grid Layout Group) plus a Content Size Fitter.
-
The items in your list should be children of Content
-
The items themselves could be Buttons, Toggles, or various other things depending on how you want them to behave. Consider making a prefab for them so that you can easily modify all of them at once.
1 Like