From the course: Unity: Architectural Visualization Interactivity
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Completing triggers - Unity Tutorial
From the course: Unity: Architectural Visualization Interactivity
Completing triggers
- [Narrator] In the previous movie we created our action triggers script. This is a really important script because it's going to allow us to play our message animation when the player or when the viewer that's when the first person controller walks into a particular area of the lobby, let's get started at doing that. The first thing I want to do is to be able to mark out a region within the lobby that the viewer needs to step into. I can do that using triggers. I'm going to start by creating a new empty object by choosing game object create empty, to add an empty object to the scene. I'm simply going to call this lobby region by rename it here from the hierarchy panel. Then I'm going to position this object into the level maybe around about here, just so that it's in front of the player here or the viewer. I'm going to select lobby region and from the inspector click on the add component button. And I'm going to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.