Join Jesse Freeman for an in-depth discussion in this video Canvas: World space, part of Unity 5: UI.
- Now, in order to illustrate…mixing UI elements inside of a 3D world,…we're going to create a new scene…called Canvas World Space.…Let's save this into our Scene folder.…Next, we're going to create a new button…just like we did before.…And, let's switch out of 2D mode,…and we're going to create two 3D cubes.…
Next, let's zoom into the cubes.…So, as you can see,…we now have our cubes in our camera.…Let's move them into a place…where we'll be bale to find them easier.…Let's move its X and Y position to 0,0…and set its scale X, Y, and Z to 100.…We can do the same with our cube.…Let's move its X position to 200,…its Y position to zero,…and its scale to 100,100.…
Now that we have our two cubes in place,…let's go ahead…and change the way that our camera renders.…Since we started this project in 2D,…any new camera that's created in a scene…will be set to Orthographic.…We need to change this to Perspective.…Also, we need to pull the camera back…so we can see our two cubes.…Now, our UI is overlayed…on top of our 3D elements.…
- 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.