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.
Use the real names on prefabs - Unity Tutorial
From the course: Unity: Integrating GPS and Points of Interest
Use the real names on prefabs
- Okay, guys welcome back. So, it's now time to actually populate this information with the correct titles. Now what I've done is I've expanded the content div and dragged in a prefab to make this a little bit easier to actually explain. So, on the prefab you can see that we have the icon which is actually an image and then as children of the prefab, we have the two text elements. So, the easiest way I thought to grab a hold of this was to create a text array and then swap out the titles for the actual text that's written inside. Okay, so let's just switch back to Visual Studio for a second. So, in order to use the text user interface, I need to be using, from the Unity engine, the UI library, okay, and then because we've got the library we can now create a text array which I will call the text. So, and then make that equal the prefabs child components, so get compon, sorry, get components, plural, there we go. So get components in children, because this isn't array, it's more of a…
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)
-