From the course: Unity: Integrating GPS and Points of Interest
Unlock this course with a free trial
Join today to access over 22,500 courses taught by industry experts.
Connect the GPS class to the place finder app - Unity Tutorial
From the course: Unity: Integrating GPS and Points of Interest
Connect the GPS class to the place finder app
So straight in, let's jump into the cameras and open up the scroll view, and let's drill down to find our point of interest button. Now, what I'm going to do is just simply temporarily rename it to be called ButtonPrefab, like so. And I'm going to right click down at the bottom and create a folder for my prefabs. There we go. Okay, cool, fantastic. So now what we need to do is just drag out this ButtonPrefab a few times. So one, two, and three, there we go. Now, the second one, I'm going to have this as the food one. The third one will be hotels. And the final one will be for the parks. Okay, cool, now first things first, let's just hook up the on click events. So the point of interest has already got it. On food when you click, scene control, let's drop you in. Let's just hook this up to Ask Google, for instead of points of interest, we could ask for food. You could also ask for bars, or we could ask for restaurants. I'm going to use food. And then I'm going to add a second scene…
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)
Creating a Google Cloud live account9m 31s
-
(Locked)
App layout and scrolling menu buttons9m 22s
-
(Locked)
Project setup7m 18s
-
Create a scene controller13m 34s
-
(Locked)
Connect the GPS class to the place finder app11m 14s
-
(Locked)
Load data from a website URL, part 1 from inside Unity8m 43s
-
(Locked)
Load data from a website URL from inside Unity, part 29m 48s
-
(Locked)
Refactor code to improve functionality3m 56s
-
(Locked)
Process the JSON code from a URL11m 23s
-
(Locked)
Populate a virtual object with JSON data16m 1s
-
(Locked)
Use the real names on prefabs3m 31s
-
(Locked)
Calculate distance using GPS14m 27s
-
(Locked)
Dynamic button listeners, part 14m 16s
-
(Locked)
Dynamic button listeners, part 211m 54s
-
(Locked)
Sort results by nearest first, part 110m 12s
-
(Locked)
Sort results by nearest first, part 28m 43s
-
(Locked)
Sort results by nearest first, part 39m 56s
-
(Locked)
-