In this video, see the gaze input system in action in your scene.
- [Instructor 1] We dragged the gaze target onto the lamp. - [Instructor 2] Yep, so this is the lamp, already has his gaze target on it. We have the main camera in this case. We have set, we have dragged the gaze script on top and we have set a thousand units distance, which is quite far. But in this case, it doesn't really matter. Another thing that I've done is to add this button in the UI, in the canvas. And all I really needed to do is, in this component, that was already existing into the object, simply set the normal color and the highlighted color.
That's really all we have to do. - [Instructor 1] That's important, because in your gaze code, you're using that selected UI object to select it, and it knows to use the highlight color when it's selected. And you've set up the button, you've set up the UI control, you've set up the gaze class on the main camera, let's run it and let's see what it does. So as Stefano is moving around, you can see his ray cast there is coming from his camera.
And in the debug window, you can see what he's looking at. As he looks at the lamp, you can see it changes color. As he looks at the button, you can see it gets selected and gets highlighted. - [Instructor 2] So really, as you can see, all I've done is drag the same script, gaze target, into this lamp and I direct it into that lamp. And they work exactly the same. - [Instructor 1] Yeah, and then if you look at the button, there you go, so now that gets highlighted, and that's UI being highlighted, not a rendered object being highlighted.
Well it's still rendered, but not a mesh object being highlighted. So that's fantastic, so we've got the ability to select things using our Jedi forces, by just looking at them. - [Instructor 2] Yes, both UI and 3D objects. - [Instructor 1] Great, well that's really good. And that takes us another step closer to building a fantastic MR application.
- Mixed reality
- Setting up the camera and scenes
- Gaze in Unity
- Building movement and teleporting
- Setting up audio in Unity
- Conditional compilation in Unity
- Creating simple models using Paint 3D
- Topology and polygon count
- Normal maps, bump maps, and CrazyBump
- Fixing issues using Maya and Visual Studio
- Exploring the frame debugger
- Building an application in Visual Studio
- Submitting an app to the Windows Store
Skill Level Intermediate
App Development for Microsoft HoloLenswith Dennis Vroegop2h 53m Intermediate
1. Introduction to Unity
2. Developing in Unity: Gaze
3. Developing in Unity: Movement
4. Developing in Unity: Speech and Audio
5. Conditional Compilation
Building for UWP5m 5s
6. Designing for MR
7. Optimization and Debugging
8. Deploying with Visual Studio 2017
- 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.