From the course: Unity: AR Visualization 02 Basic Interactivity

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Adding the move button to the in-world UI

Adding the move button to the in-world UI - Unity Tutorial

From the course: Unity: AR Visualization 02 Basic Interactivity

Start my 1-month free trial

Adding the move button to the in-world UI

- [Instructor] Now we've covered the theory of how we're going to move things, let's start with creating some UI. Let's go to our Part UI and start with adding a Move button. We're going to duplicate our Hide button and call this Move. Awesome, let's hide some things so we can see what's going on. That's great, and we're going to move this by selecting the Move tool and move it up to about 70. That's perfect. Now let's go and change the Title. And we're going to call this Move. Great, let's go select the button route. You can see that it's still calling on Hide Part. We need to go and create a method for this. So let's select the Part UI route. Double-click on the script. That'll bring you into your Code Editor. Perfect, let's go and add a method, public void OnMovePart. We're going to keep this empty for now and add some functionality later, but we're going to go back to Unity and hook it up. Select our Move button.…

Contents