I'm come from WinForm/.NET development, where there is a lot of 'cool' ready made widget like: combo box, list view with scrolling system included.

Now I'm using Unity and I'm trying to implement user GUI, but i'm facing some trouble because as i can see there aren't much ready made widget.

Specifically, I'm trying to implement a saving/loading system and i'm trying to add a window with a list box containing list of saving file.

What's the best widget / approach to do this ?


  • \$\begingroup\$ Are you looking for a Dropdown menu? \$\endgroup\$ – DMGregory Mar 28 '18 at 16:20
  • \$\begingroup\$ No: listbox... Like a dropdown but always opened. \$\endgroup\$ – stighy Mar 28 '18 at 17:56

Looks like you can get this behaviour like so:

  1. Create a new UI->ScrollView

    • Deactivate its horizontal scrolling checkbox
  2. Navigate inside the ScrollView's hierarchy to Viewport -> Content

  3. Add 2 components:

    • Vertical Layout Group (stacks contents vertically)
    • Content Size Fitter - set vertical fit to preferred size (expands container to the size of the list vertically, so it provokes a scroll bar)
  4. Add your content items underneath this parent. They'll automatically stack & scroll when needed.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.