Player input is essential for triggering interactive objects, like doors, windows, and drawers. This video explores how to read user input, including button pushes, mouse clicks, and movements to detect which object is in focus.
- [Instructor] In this video, we'll continue our analysis … of the object select a script. … We saw that at line 57, … when our rake cost intersex and interactable object, … the focus object variable is set here. … And when that happens right now. … The object, the interactive object automatically highlights. … Let's take a look at how that happens. … When line 57 happens, focus, object is set. … And at that very moment the code … we'll move right up to the top here to focus object. … And this is a C-sharp property. … This means that when the value … of focus, object changes, it enters this set area here. … And when this happens … you can see how it interacts and connects with it. … Interactive object script here. … At this point, it is checking to make sure that the value … of focus object is actually changing … to something different than what it was previously. … If it is, then it determines … whether a new object has entered the highlight area … whether we're actually facing a new object …
Skill Level Intermediate
Unity: AR Visualization 01 Basic Conceptswith Roger Miller1h 59m Intermediate
Unity: AR Visualization 02 Basic Interactivitywith Roger Miller2h 39m Intermediate
Cert Prep: Unity Scripting and Publishingwith Alan Thorn2h 3m Intermediate
1. Configuring an Architectural Visualization Scene
2. Area-Based Interactions
3. Doors and Object Interactions
4. Camera Controls
- 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.