From the course: Unity: Integrating GPS and Points of Interest
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Load data from a website URL from inside Unity, part 2 - Unity Tutorial
From the course: Unity: Integrating GPS and Points of Interest
Load data from a website URL from inside Unity, part 2
- Now to do this, what we're going to do is we're going to use Unity's WWW request. And if I just open up Google for a second, and just open a new tab rather, there we go, so if I type in Unity WWW, it will bring up the documentation page. And from here, look, you can see that there are various different subcategories under this command. This is how we're going to request information from a URL, and it's what you need to do if for example you wanted to connect to a web server, and log in to retrieve the user's information, and then load that into the app dynamically. Which is a very sought after skillset that lots of my students have asked me for. Now the only real difference in this one and this one, is this base request will act almost like a hyperlink on a website, where when you click it it just goes to a website and loads it on the screen. The difference is that Unity can then download that information and we can read it inside Unity. So if it's plain text, then it's nice 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)
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)
-