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.

Configuring animation playback

Configuring animation playback - Unity Tutorial

From the course: Unity: Architectural Visualization Interactivity

Start my 1-month free trial

Configuring animation playback

In this video, we're going to take a look at how the object selector script which is attached to the viewers camera. We're going to look at how that script can figure out which object we're looking at. And the way it's going to do that, is by using a Physics Raycast. Now in the preceding movie, one of the things that I mentioned that was critically important for all of the interactable objects in the level, is that they're all going to be on the same layer. I'm going to assign our interactive door to the relevant layer right now. So I'm going to minimize Visual Studio, and then move out here and select our door at the end of the corridor here. Just left-click to select that door, and it's selected here, inside the hierarchy panel. Now in selecting that door, I'm going to move up to the Inspector here and check out which layer it's on. By default, it's on the default layer. That's the normal layer of all…

Contents