Intro to Connecting an API to Unity
Zenva
ACCESS the FULL COURSE here: https://academy.zenva.com/product/educational-gamedev-academy/?zva_src=youtube-edu
TRANSCRIPT
Hey, everyone, my name's Daniel Buckley, and I will be your instructor for this course. So what are we gonna be making? Well, we're gonna be creating a app that accesses an API to display information to the user onscreen. Specifically, this is gonna be an app that shows upcoming firework displays in the Queensland area. Let's have a look at this app. Here in Unity, I have the app open here, and we can search by suburb. If we just, if we don't enter in anything, it just appears with all the suburbs here. And yeah, we can see that the locations as well as the date that they'll be happening, so for example, we can click on one here, and it will show us information. Starts at 4:45 p.m., it's a public event, and it's close proximity, and we also have an address, as well. And as you can see, there's also a little firework effect goin' on here. We have different-colored particles going off. We can also filter these selections by, let's just say we want to have all the firework events that are happening within the next 24 hours. We can click on Today, and that'll show, within the next 24 hours, the events. You can click on Week to show them within the next seven days. And then we can go Month as well to show within the next month, as well as All. So yeah, this is gonna be an app, very versatile. This is just one example of what you can do with it. You can do many more sort of things with APIs as the database we're gonna be accessing has hundreds, it has thousands of different data sets you can access. So what are some of the things you'll be learning during this course? Well, first of all, we're gonna be learning about how to connect to an API. We're gonna be using the Queensland government data sets to access their APIs, as they have a wide range of different information available. We'll be testing this out, then, in Postman, which is an API development environment that you can download. You can easily enter in APIs, enter in parameters, and then get the result in JSON files to easily test it out before opening Unity. And when we do open Unity, we're gonna be using the Unity's UI system to create a very dynamic UI system for our app. I'll show you back in the editor here. What we're able to do is, right now, it is in the nine by 16 aspect ratio, but what we can do as well is pretty much have this work in any aspect ratio. Here, I'll go to 16 by nine, and as you can see, the UI stretches and warps to the respective size of the screen. We can go back to phone, we can go back, we can try all these different aspect ratios, they all work. So we'll be using the Unity's UI system, more specifically, the anchoring and positioning of the UI el ... https://www.youtube.com/watch?v=tkEBkLqnEZs
8361959 Bytes