Join Jesse Freeman for an in-depth discussion in this video Creating sliced images, part of Unity 5: UI.
- Now that we've looked at the different ways…to fill our image, the next thing we want…to look at is how to deal with sliced images.…If we change the image type to Sliced,…we'll be able to create a nine-slice effect.…This is when the corners of the image…stay the same resolution, but the center and middle stretch…based on the size that you give it.…This is incredibly important for things like buttons,…where you might want to have rounded corners,…or, if you have borders around windows…and other type of chrome you'd use in your UI.…
Now that we've selected Sliced, you'll see…that we're getting a warning that our image…doesn't have a border.…Let's select our Sprite and go into the Sprite Editor.…Since this is a single sprite, our options are going…to be a little bit different.…Instead of cutting this up into a sprite sheet,…we're going to have the option to create a border.…You'll see these green handles on either side.…Here, we can drag in the edges of our sprite…in order to create the border.…
You'll notice that we now have nine images.…
- 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.