How to Use UI Layout Groups in Unity
Zenva
ACCESS the FULL COURSE here: https://academy.zenva.com/product/educational-gamedev-academy/?zva_src=youtube-edu
TRANSCRIPT
Hey guys, my name is Austin Gregory, and in this course, we're gonna build a cool little quiz game that's going to allow us to ask questions and provide optional answers, where the player will then have to choose what is the correct answer for this question. Now it's pretty simple and pretty straight forward. But we're gonna have basic questions, that are just strings of questions. Then we're gonna have image questions that are gonna provide an image and an optional caption. So you have an image of a bird. The caption can say, what is this bird? That kind of thing. And then we're also gonna have audio clip questions, where we can click a button to play an audio clip with a caption as well. And it will be like, what is this instrument playing? Or, what animal makes this noise? And then you're gonna have options to choose from at the end of each question set, or each topic set, or however you wanna organize your questions. You'll see how easy that is to do once we get our system set up. You're gonna get scored on how you did for that set of questions. So, if there's 10 questions, and you got seven out of 10, you got a 70%, or a 70, or whatever kind of arbitrary rating system you want to add for your game. But in this case, it's gonna be all pretty straight forward, and all pretty simple stuff. So, I wanna create a new project. I wanna call it, Super Quiz. And I'm gonna use the latest version I have available to me, which is 2018.3.2. And I'm gonna make sure that I just have it on 2D. It doesn't really matter for this, but it's just gonna be a UI game. There's not gonna be any game graphics beyond just the interface. So it's gonna be pretty simple stuff. And I wanna click, create project. And while it's doing that, I wanna show you that in this folder here, I have a couple bits of media. I have a picture that's going to just be, a field. We can just use for a dummy question. And this is just a Wikimedia Commons image. And then I have an outline of a country, just for an example of another image question. And then I have an audio clip here, that's just a flute. So, what I wanna do in this first lesson, is I wanna set up the UI for our quiz game. So, what I wanna do in this first lesson is get started by setting up our UI for our quiz game. And we'll see if we can knock it all out in one quick lesson here. So, what I wanna do, is create just a UI. Let's create a UI panel object here. Now, what this is gonna do for us, is create a canvas object and an event system object, which we need to work with the UI system. So I'm gonna lay out my quiz question and answer layout here. Now, this could just be a half and half, 50/50 thing here, ... https://www.youtube.com/watch?v=aco62fb9vMY
22892405 Bytes