From the course: Unity: AR Visualization 01 Basic Concepts
Unlock the full course today
Join today to access over 24,100 courses taught by industry experts.
How to identify a component or mesh - Unity Tutorial
From the course: Unity: AR Visualization 01 Basic Concepts
How to identify a component or mesh
- [Instructor] All right now that we can place our 3D model in the physical world. Let's see if we can interact with it. Let's open up the AR manager to do this work. Right. Here we are in the AR manager script. And first I'm going to go grab the previous work that we did for detecting our placement in the real world and wrap that up in a another method. So I'm going to go into the update, I'm going to cut and under methods, I'm going to create a new method. I'm going to call this private void Raycastdetectandplace. It's good to be explicit with your naming and inside this method, I'm going to dump all of that previous detecting place work. Now I'm going to create a new method for interacting with a mesh. We're going to do something similar. So I'm going to create a similar class underneath Raycast detect and place. I'm going to go private, void Raycast- pick mesh. Excellent. Now that the naming of the method…
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.