 Hello, welcome to our basics of unity course today We're just gonna be going over the basics that you'll need to get going right now. We are on the unity website unity 3d.com and specifically where I'd get unity download if you just search Unity online it might bring you straight to here If you search unity hub, it will definitely bring you straight to here because that is how I got to this page Unity hub being what it says right here and The way that we Download unity is a little different than when you just download another program Unity is kind of strange in that You really need to be able to handle lots of different versions of it on your one machine if you do development with it and Because of that they have given us the system called unity hub that lets you manage all of your different installs of unity so all the different versions that you're going to be getting over the course of your time using unity So to get unity hub, it's very simple. We yeah Click the unity hub download unity hub button one thing that might expedite this process by the way is a If you make a unity account, I believe I'm signed in right now, but you can just Make an account through the unity website If not, it's going to guide you through making an account when you try to open up unity hub I believe so anyways if I click you unity download unity hub, it'll give us an install I cannot install unity hub. I already have it, but if you click that it should bring you through a wizard You can install it wherever you want choose the different folders to place things into and It may even ask for an account to set it up with again It should give you means to set up your unity account That account will be essential for this and we're going to be using unity Personal edition Since that is free for everyone So yeah, when I ask you a type of account make sure to do that one so I'm just gonna clear this out so you can see it. Let's go to what you need to have looks like though and You wouldn't have all of these projects here, but once you get unity hub open it will look something like this So Again, this is kind of like our hub that we use for Accessing our unity projects that we make for Installing new versions of unity. They even I guess they have tutorials in here and other stuff now. I've never even seen these Yeah, they keep adding new features to this all the time but today what we're concerned with is Installing unity because right right now we have the hub which lets us get different versions of unity installed onto our computer But right now for you, you probably don't have anything when you click on this button right here projects Sorry when you click on installs You probably have it empty here So In order to get unity we need to go to install editor And from there, uh, you can choose a Version I highly highly recommend getting the current long term long term support version of Unity 2020 so right now that would be this top one that it shows um I find that if you're using the one for the year you're in or even I guess at this point the year Prior to you, uh, you're gonna have a lot of bugs you run into It's not really a finished piece of software until it goes into long term support So I highly recommend, uh, just snagging that 2020 lts and it's simple. You just click install um It asks you for different things if you don't have visual studio installed You're gonna want to check it so that you make sure you get it Um, and you're gonna want to choose your different platforms that you may be building for so In this case, let's say you wanted to build Just apps for your pc I typically recommend grabbing universal windows platform build and il to cpp They this is this is also the combo you would use if you wanted to develop For the hollow lens for instance But let's say you wanted to develop for the the quest You would also want to turn on android build support and These features and stuff. I think you can actually just leave it with just android build support though yeah, um And then you'd go through the install I'm not going to do that right now It will take a lot of time in this video that we're trying to keep short But that's all it is you just click install um You can choose the place that it installs them to But I don't believe you choose it here Unless they've changed it You go into preferences you go to installs and you can choose where it's going to place them You can even choose where it puts the the downloads before it gets installed Yeah, so Anyway, let's say you now Installed it sat through the fairly long installation time and you have everything in you got the visual studio Install all of those parts that it wants to give you And you're good to go. So you'll probably see one version sitting right here And you can see in these tags underneath uh, what Uh build platforms are supported that you have downloaded for it. You can always go add new ones I can just click the gear. I can add modules and that will let me add new Uh parts to it okay, so Now that we have it installed We need to go make a new project. So to make a project in unity. It's simple We click on the projects tab in unity hub And we go to the top right corner where it says new project. So I'm going to click that And this will give us uh, you'll see a whole bunch of stuff showing up First up top, you'll see the editor version if you had different versions of unity installed You're going to uh, be able to choose different ones that you may want um For different projects some you know, you might run into a Piece of software that you want to use, you know, maybe some computer vision thing Maybe something else that's like, oh, we only work for unity a blah blah blah version And so you'd install that version and you could change that up here um There's a bunch of different templates to start with but In pretty much all circumstances. I just use The plain 3d one Um, I don't recommend using the vr core one. I have uh been warned by others that it's Not worth it. Um You just go with 3d to start There's a cup if you are building a full scale like game Or something where you need to look super graphically Accurate and intense you would select hd rp. So these are render pipelines 3d uses the Universal render pipeline which basically means it'll run on Anything you could run this on a phone. You could run it on a computer. You could run on anything Uh, but if you wanted to run something on a really strong computer or a console You would choose the hd Like high definition render pipeline basically um That is not our use case today. So All you have to do is just have 3d select it and you'll see we've got a little menu over here on the right We can make a name for a project. I'm going to call it Unidemo Show Case, I don't know And it'll go default to a folder that you've already selected, but you can choose a different place to put it And I'm going to create a project And now it's the part where typically in a workshop I would wait Uh to Take questions Because uh, it's going to take a bit to build your project, but uh Let's see. I think I'll just skip here and uh, we'll get back when the Uh unity has opened Okay, so we've opened unity Uh, you'll notice since I didn't just install the latest version It gives me a warning every time on if I've if I want to install the new version for now I'm just gonna ignore it Uh Here is unity. So again unity is a 3d Game engine or I just call it like a 3d application engine You can use this to make any kind of 3d software in a fairly intuitive way And so now let's go over The uh, all of the parts of this interface you can see, you know, there's tabs everywhere buttons nonsense Let's make sense of it So I always think it's best to start with the scene tab. So ignore this stuff over here on the left The scene tab is what is selected right now and the scene tab means uh the Basically, what's in our app or game? world We can look around in this world by right clicking on the window And moving our cursor around We can move around in this window By either zooming in and out with the scroll wheel or What I like to do is if you right click you can move around You can fly around with WASD Like the controls that you might find in a first person shooter game Maybe you can move around with the arrow keys. Nope. Yeah, it's just WASD. So So it is Uh, so yes, this is the scene think of this as we're looking at what is in our world right now right now We only have two objects a camera, which is how we The person who's viewing the game will see the world and we also have a light source Which is just putting light out into the world. It's not it's not like a flashlight These aren't rays shining down in this direction. It's more of something being applied to the whole world um So if we wanted to see what it looks like from the perspective of the player We would click on this next tab called the game tab. So when we click that you can see this is what it looks like From the view of the camera Ignore this asset store tab it is deprecated The but I guess it is important to mention the asset store is a really really helpful tool when making things in unity all of the plugins all of the You know resources different things you'll find them on the asset store Uh, which you can do by just clicking this button. It'll open up a window Voila And uh in this chrome window you can go and search for different things. I tend I use this pack a lot world materials free um Yeah, the the asset store is a great place We're not really going to cover much on it today, but I just wanted to show you that This is a place you can go to get Assets and different materials and things for the stuff that you're making in unity in unity um Importantly, you do need to have a unity account to use it so Okay, back to unity. So we've made it past the asset store tab This tab should might even be gone in the version of unity you're using. I'm not sure all right, so now Taking a look back into our scene Let's look at this panel Uh over here on the right. This is the inspector So what it basically is is uh, if you are looking at an object So let's say I click on the camera. We can see all of the pieces that make up What a camera object is These pieces are called Components in unity and that's an important word to Get used to hearing I guess because it's it's gonna be a lot of what goes on Unity is you will make an object and add components to it We see down here. There is an add component button and you could use it to Basically type in different kinds of components you want to add and uh put one on So right now when we're looking at the camera, we can see that it has a transform Component a camera component and an audio listener component Uh The let's do these in reverse order audio listener means that when audio events occur The camera hears them because it's listening The camera has the camera component basically turns this object into a camera This is what makes this object be a camera rather than being I don't know a light source or something um and Very importantly, we have the transform component This is something you're going to be messing with a lot and I will show you in a moment Just how it works, but this defines the position rotation and the scale In xyz dimensions 3d space of Your objects So if I was to move the camera around you'll see that the position changes Cool so Anyway, so now let's move on to this panel to the left Uh, this is the hierarchy tab and this is a very important space. Uh, it's On first glance, it's going to look like a list of all of the objects in the scene So if I click you'll see we have a Camera that we can click and we have our directional light that we can click and when we select them We get to uh, you know, it selects them inside of the scene selects them inside of It shows them up in the inspector because they are selected. So let's add an object real quick just, uh To kind of show you, uh, what we can do with objects So I'm going to go to the top here where it says game object Click on that You go to here. Let me turn on highlighting So now it's going to highlight all my clicks for you. All right, uh, we're going to go to 3d object I'm going to go to cube Cool So now we have a cube just chill in here All right, we can see that it's it's a location is here. I think I'm going to zero its location You can do that by There's a bunch of different ways to manipulate the transform in unity. We can type things in Zero we can Drag this slider if you grab the letter you can drag side to side And you'll see that i'm adjusting the y If I wanted to just transform I could also drag on these handles Uh, just fyi sometimes these handles don't show up if these handles aren't showing up for you uh What's happening is up top we have these tools and it means that your move tool is not selected whatever tool you have selected You'll see as I click these It determines the handles that show up And all of these handles all that they do is give you different ways of manipulating the transform uh, I tend to just Leave it like this so that I can see a little bit of information but not Have my screen filled with lines But uh, it's up to you. This gives you the most control For instance, uh, if I drag on this square here I can adjust the scale along that axis as well. So It just gives you a lot of control All right, I'm going to switch back to this one for now. They're just for simplicity's sake uh You can notice actually right now that the lighting direction Uh is pointing Onto the cube in the fashion that it points down So it's kind of like a light source was shining from infinitely far away up there. You can kind of see it And uh is lighting this cube Okay, so anyways, we've added a cube to our scene And uh, you know, let's add another object. Let's uh go to a game object 3d object once more I'm gonna add a capsule Uh, let's say a little bean. It's actually a fairly large bean. Let's get it closer to us. I'm just gonna zero these Fast shortcut to zero things is you click these three dots next to transform and click reset That'll save you a lot of time. It sets all of these to zero and sets all of these to one So let's get this over here near our cube And uh, I can use these To walk you through Why this tab is called hierarchy? So right now again, I said it on first glance it just looks like a list, right? Just a list of all the objects that are here. We can click on them. We can select them um And uh, you know, these are all the objects in our scene if we go to game view you can see all of the objects That are in our scene back to scene So let's Answer the question of why it's called a hierarchy though. So, um If we take capsule and we drop it so i'm grabbing it i'm clicking on it I'm dropping it onto cube You'll see now it's underneath it. What this means is capsule is called a child of cube And all that that means is any Changes we make to the transform of cube Will also be applied to capsule So for instance, let's say I wanted to make Capsule real wide, right? I'm gonna drag its scale On the z axis You don't make a pancake. I'll drag the scale on the x axis out Oh, we can you know, we can do weird stuff to To our capsule, but you'll see it's not affecting the cube This is because it is the child and the child Gets to kind of do things independently Of the parent But when we manipulate the parent Cube all of the children Get changed as well. So you'll see now if I stretch The cube vertically like this it also stretches the capsule And a good way to think about this is just to think about Why it is this way? Let's say you were making a character and you wanted to give it You know arms and legs that move around, right? well If our arms and legs were all separate objects of this character And they wouldn't move around together Then, you know, we have our player move forward or something It would they leave their arms behind unless we were like every time you move forward also move arm forward also move this forward, right? So the idea is You get to make parts that act As pieces of a whole Parent object so all of the children move around with the Uh Parent object one really common use if I unparent this real quick a really really common use of this is if I Uh, let's set this back to neutral Bring it kind of over here if I put the camera Inside Near Don't think it's inside yet is it? Let's take a peek Oh, it should be inside Oh, it's staring at the staring at the brick Let's move the key by the way Or just move it further away or something. Okay, so you'll see when we select the camera we can see the view again Uh, a very common uh thing that's done is let's say we had our player that was here and this was their body, right? We would want to Make it so the camera Moves with the player so when I move the player around See the camera moves with them because the camera is a child of the player so Yeah, that's the idea. That's that's why it's called hierarchy. It's uh Describing the parent child relationship and your children can have children and all of the you know, it can just go endless chain Just go down, but yeah This is why it is called the hierarchy tab and this is important to grasp Uh, this is just kind of a core part of how unity works Okay We are almost done on to the final final thing There's still two tabs. We haven't touched yet So let's do that real quick First we have project Think of project as your file explorer. So, you know windows Or in mac. I think it's called explorer there, too. I don't remember what it's called in mac actually But the the idea stays the same. It's What you use to look at files you know so It's just like this except It's in unity and uh, it kind of has its own file system You'll have this assets folder. That's where everything that is a component or not a component. It's everything that is An asset that you could put into your game will be in the assets folder So you maybe I make a color that I want to put onto something or uh, I download some scripts or something They're probably all going to be in assets Uh, they could be in packages Uh, but really all of the things you'll typically interact with that you might drag and drop in Will be within the assets folder So, yeah, it is literally a file explorer. You can see under scenes we have our scene that we're in right now Um I'm going to save our scene so I don't mess things up. I just saved it with control s Yeah Yeah, okay, uh Finally, there is the console tab This is uh Real simple. It is a console. It is a readout if you were to run the game. Let's let's try running it. Let's see what happens To run I click play And this is what our game would look like right now. We haven't told our camera to do anything. It's just chilling there Staring at a white wall That's my favorite game, uh So we've got a a little reading coming up here just saying that there's a Uh visual studio editor packers. They'd like me to update, but that's it Uh, it doesn't seem that we got any other notices, uh, you may get a red one here if there's an error or a bug and uh Otherwise we will probably get some things into this Mark that looks like a exclamation point And you can toggle them on and off by the way so I can toggle The yellow ones on and off, but this just means like a this exclamation point one means like a uh Sorry the speech bubble one, uh means Just a normal message and uh typically whenever you're running anything Especially code that's pre-made you're going to get a couple of messages in here just saying things are running as normal, you know Uh, yada yada. This has gone on. This has gone on and it's also really important The the main use of the console the only time I click over here is Let's say I'm making some code and I need to debug it or I'm making a I'm making something happen. I need to debug Well, I don't know where the thing is going wrong. I'll tell the code to print Something like uh, you know when I tell you turn left Print turn left to console and then it would push it it would put it right here So this is kind of a tool for you to use when you're debugging any code or things that you're making So yeah, that's what the console is for and that is unity Yeah, so uh That should be enough for you to kind of understand the basics of how this works For today. This is it. Thank you all for watching and uh See you in the next one See ya