Join Jesse Freeman for an in-depth discussion in this video Handling overflow, part of Unity 5: UI.
- Now, let's go into our text field and align it…to the middle of our component's boundaries.…Now, if we were to increase the font size…to something like 100, you'll notice…that our text disappears.…In order to get text that is larger…than its boundaries to render,…we need to change the overflow.…Let's go down to the "Horizontal Overflow"…and change it from "Wrapping" to "Overflow."…We'll also need to change the "Vertical Overflow" as well.…
Now, our text is going to flow outside of its own boundaries…along the horizontal and vertical axes.…What's interesting about this is that we can no longer…use the alignment based on the actual size of the text…and instead alignment will only…work on the size of its boundaries.…To illustrate this, let's try to align this…in the upper left-hand corner.…As you can see, this light gray box here…represents the physical width we've defined…inside of the "Rect Transform."…The text will continue to flow outside of it.…
In fact, if we left align it, you'll see it now moves…to the upper left-hand corner.…
- 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.