Join Jesse Freeman for an in-depth discussion in this video Understanding grid layouts, part of Unity 5: UI.
- Now that we've covered…horizontal and vertical layout groups,…let's take a look at how to make a grid layout group.…Let's create a new empty game object,…and we're going to add a grid layout group to it.…The grid layout is similar to our horizontal layout.…Here, we have padding settings…for the left, right, top and bottom.…Where it differs is that we're able to define…the cell size's width and height…for the items that go into the grid.…
This will override any layout elements…that we have attached to our objects.…We can also change the spacing…around each of the cells.…And then from there we can change the start corner,…the start axis, the child alignment, and the constraint.…We'll take a look at some of these next.…First, we're going to want to add an image…into our new group.…Let's continue to copy and paste this image…inside of the grid.…
What you may notice is that the image…is starting to tile vertically.…Let's rename this to GridGroup,…and let's take a look at the constraint property.…Right now the constraint property is set to flexible.…
- 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.