Join Jesse Freeman for an in-depth discussion in this video Creating a toggle and a toggle group, part of Unity 5: UI.
- Let's take a look at how the Toggle…and Toggle Group components work.…We are going to create a new scene…and we will save the scene…to our Scenes Folder.…Let's call the scene OtherComponentsScene.…Next,…let's go to the UI menu…and create a Toggle.…A Toggle is very similar…to a regular button.…The biggest difference are going to be…the properties at the end.…
Here, you can select if the Toggle…is on or off,…by checking it…it changes the artwork…inside of the button itself.…You can also change the Toggle transition…it is set to fade by default…or you can set it to none,…if you don't want it to have an animation.…It needs a reference graphic…for the checkmark…and it also needs a reference to the group…if it belongs to a Toggle Group.…Inside of the Toggle…you'll see there's a background…as well as a label.…
Inside of the background…is the checkmark icon.…This is very similar to…the button we created earlier…when we added an icon to the left…and moved the label over…to adjust for it's spacing.…In order for Toggle buttons to work correctly,…
- 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.