Join Jesse Freeman for an in-depth discussion in this video Creating a dropdown, part of Unity 5: UI.
- Now let's take a look at the drop down component.…In our canvas we'll just right-click,…go to UI…and select the drop down.…Let's move it down a little bit so that we can work with it.…The drop down component is by far…the most complex component we've looked at yet.…The drop down itself consists of an image…in the drop down script.…At the top you'll see the same properties we've had…on most of the other components.…
You can configure the way that it transitions,…as well of its navigation.…Down further, you'll see a few different options.…The first is the template.…Let's run the game and take a look at…how the drop down actually works.…You'll see the currently selected option…is said in the label.…If you select the drop down,…you'll see a new drop down list is created…and we can now choose a different option.…If you select Option C for example,…it will get a check box and the label will be updated.…
If you reopen the drop down,…you'll see that the check box is on the selected option.…If you take a look in the hierarchy…
- Adding new components to the Canvas
- Working with RectTransforms
- Nesting UI elements
- Adding rich text and effects to the UI
- Creating images
- Styling UI buttons
- Handling input
- Creating sliders
- Controlling the layout of the screen
- Adding toggles and dropdowns
Skill Level Intermediate
1. The Canvas
2. Working with the RectTransform
3. Working with Text
4. Working with Images
5. Working with Buttons
6. Handling UI Input
7. Working with a Slider
8. Controlling Layout
9. Toggles, Dropdowns, and the Input Field
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.