From the course: Unity: AR Visualization 02 Basic Interactivity
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Creating the reset method - Unity Tutorial
From the course: Unity: AR Visualization 02 Basic Interactivity
Creating the reset method
- [Instructor] So we can save data, we can load data, but we also want to be able to reset our data. And to reset our data we need to save the start position. So, let's go and make a method. We're going to go copy one of these, and we're going to call it save start position. Just like this we're going to be iterating through the parts. Now, what we need to do is call save start position. All right, so easy as that we've got our save start position. Now let's go and integrate it. We're going to integrate it where we set the mesh. So, lets go grab that. Let's go into AR manager, and we want to trigger this when we place the mesh down. So after we set pick mesh, on detect and place, we're going to go AR, part manager, thought, save position. Excellent, now lets go make our reset. So, same as before we're going to iterate through so let's just duplicate an existing method. We're going to call this reset. and…
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.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
How and where is your data to be saved?54s
-
(Locked)
Creating the part dynamic data structure2m 32s
-
(Locked)
Creating the save method4m 20s
-
(Locked)
Creating the load method4m 40s
-
(Locked)
Creating the reset method1m 53s
-
(Locked)
Adding the data buttons to the parts menu5m 4s
-
AR app in action1m 13s
-
(Locked)
-