Join Jesse Freeman for an in-depth discussion in this video Canvas scaling, part of Unity 5: UI.
- So now let's talk a little bit more…about the Canvas Scaler.…By default, it's set to a constant pixel size.…If we were to zoom in here to our button…and change the Pixels to Units to 1,…you would see that all of a sudden…the rounded corners of the button change.…And that's because the default sprites…that come with the Ui are set…to a Pixels to Unit Reference of 100.…You'll have to keep this in mind…based on the way that you work with your own sprites.…Generally when I build my own 2D games…I like to set the Pixels to Units…to a one to one relationship.…
So that means that there is one pixel…per one unit inside of Unity.…If you do that for your own games…you're going to want to also make sure…that you have your own skins for buttons…and other elements that come default…as part of the Unity Ui set.…Now let's talk about the Ui Scale Mode.…Let's change this to Scale With Screen Size.…As you can see, our button got a lot smaller.…What's happening now is that we're going to try…to match the canvas to a specific resolution.…
- 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?
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.