Join Jesse Freeman for an in-depth discussion in this video Creating a slider, part of Unity 5: UI.
- Now let's take a look at an even…more complex component: the slider.…We'll create a new scene…and save this into our "Scenes" folder.…Let's call it "SliderScene."…Next, we'll create a new slider component.…With the slider in place, let's…take a look at how it's built.…Just like the button, the slider…is made up of several different components.…At the parent game object, we have a slider script.…
This looks similar to our button:…We have ways of transitioning the colors,…we also have some navigation elements,…but after that, things look a little bit different.…We have a "Fill Rect" and a "Handle Rect,"…which we'll talk about in a minute.…We can also change the direction of the slider…as well as the minimum and maximum values.…We can check off whether it uses whole numbers or not…and we can set the initial value.…If we change the value right now,…it'll give us a fraction between zero and one.…
As you move it, you'll see the slider updates itself.…On the left-hand side of the slider…is a solid white color; this is our fill.…
- 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.