How to Build a Quiz UI 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 going to 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 then 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'll 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'm gonna 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 just 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'm gonna 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. Let's 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 Unity UI system. So I'm just gonna just lay out my quiz question and answer layout here. And that can just be a half and half 50-50 thing here, ... https://www.youtube.com/watch?v=asOScgc0bmo
23294769 Bytes