This video explores how to respond to user input and connect this to object animations for doors, drawers, and windows. Learn how to make objects move and change based on user input.
- [Instructor] In this movie we're going to complete … our door interaction so that finally … we can click on the door to open it, and if we want, … we can click on it again to close it. … In selecting the door and taking a look at the inspector, … you can see we have our interact object script … and the on-selected event is currently empty. … What do we need to do inside that event? … Essentially we need to trigger the door open, … or close animation. … You'll recall, back at the beginning of this chapter, … inside the animator, we created this triad … of animation states. … Closed, open, and closing, and we can use … this parameter here, the door change parameter, … to open and close the door as needed. … So we're gon' be setting this parameter … inside this selected field. … To do that, I can simply choose to add a new event … here inside this field, I can drag and drop the animator … into this slot, the same animator on this object … and then from the dropdown, … I can choose the animator component and then I can choose …
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.