You can access the full course here: Bite-Sized 3D Game Development
Hey guys, my name is Austin Gregory, and in this course we’re gonna learn Unity from scratch.
The goals of this course are gonna be to learn Unity’s tools and interfaces, learn how to manipulate objects with transformations, like moving them, scaling them, rotating them. We’re going to learn how to snap them together using vertex and surface snapping. We’re gonna learn how to create materials to apply colors and textures and shaders to objects. We’re gonna learn the very basics of programming and the concepts of programming. And I’m gonna take that knowledge and learn some object-oriented programming, just the basics though, just to get the idea of what it is. And I’m gonna talk about some vectors.
We got a lot more as well, but that’s just the gist of it. And it’s completely for beginners, no experience required. Don’t have to know anything about Unity. We’re even gonna walk through installing the editor and Unity Hub and all that. That’s coming up in this course, guys. My name is Austin, and I will see you in the first lesson.
So let’s get started by downloading Unity Hub. So what I’m gonna do, is I’m gonna go over to unity3d.com. And there’s a lot of information on the homepage here, that will teach you a bit about what Unity can do. So for now, though, all we care about is this Get Unity button, right here. I wanna click on that and that link’s gonna take me to the Store page, store at unity.com.
So we wanna click on Try Personal, and I’m gonna go ahead and check that I confirm all this stuff here, of course. And what I’m gonna do, is I’m gonna download the Hub. Now like I said, you could download the Installer for the editor, directly, but I don’t wanna do that. I want the Hub. So I’m gonna download Unity Hub, and I’m gonna run this Installer. And when you do, you’re gonna see a simple agreement to the terms of service. We know how to do that, just gonna agree to that. And if you wanna read it, go ahead. And then we’re gonna slide through one and install it. In my case, I just keep it right inside the program files there.
And now this shouldn’t take too long to install, simply because you’re only installing the Hub itself, you’re not installing Unity itself, at this point. So once this finishes, though, we’re gonna jump in there, and we’re gonna actually start installing the editor.
What we’re gonna do here, is once Hub is open, we’re gonna go to the installation tab; we’re gonna go down to Official Releases and we’re gonna find their latest version that’s available. To me, it 2018.2.10f1. We’re gonna download that and then let it install.
Now, whenever I click download, it’s going to open up this window here that’s going to allow us to select some components. There’s a lot of stuff here, but the important thing to remember, you can always come back later and install what you do not have, if you need it. In my case, I don’t need Android Build, or iOS Build, or Linux, or all that stuff down here. There’s gonna be a lot of options. But in my case, I just want the Documentation and the latest version. And then we’re gonna click done. And when we do that, it’s gonna start installing that version of Unity, with those settings. And again, you can always come back and add the components you need.
And that’s gonna be all we have to do to install Unity on our systems.
Hey, guys, welcome back. In this lesson, we’re going to look at positioning objects in our Scenes.
So in our current Scene, we have a cube object. And if I look up here, now, (we touched on this a second ago), but if I look up here now, I have a Transform with a Position, Rotation, and Scale. And I see X, Y, and Z values, and they’re pretty crazy values; and we’ll change those here in a second. And now, what’s important about this is that’s how we position things in our world. We decide at what X, Y, and Z coordinates the object is. So if I were to take this and say X, Y, and Z is zero, that’s gonna be directly in the center of our game world.
I can also have a more freeform control of this by just grabbing the Move tool that we have selected here. I can just move it on the x-axis just like this. It will only move on the x-axis if I do that. And the same goes for the Z and the Y. Now maybe I wanna move it on the Z and the X at the same time. Well, I’ll grab green, there we go. And the same goes for the red here. And then blue: move it on the X and Y.
Let’s create another cube here. I’ll just select this cube, and I’ll hit Control and D on the keyboard. I have it selected, so what I can do is I can just move it out. Now, one thing that’s important is what if I wanted to place this cube directly up against this cube. I can hold down Control and Shift, and doing this is going to enable the surface snap option for the Move tool. Now, if I were to click and drag, notice once the mouse is over another surface, the object snaps to that surface. So I can just snap these vertices together by holding down V, hovering over the vertex that I want, and I just drag it, and it will snap to the nearest vertex available to it. Boom, there we go. Now, we are right up against each other just like we need to be.
Now, just a tip, what if I’m moving some stuff around here and this just gets way off screen somehow and I don’t where it’s at. I’m trying to find it, I can’t find it. So, I can double-click on Cube 1 here, it will frame it right in the center for me. Or I can have an object selected, and I just hit the F key and that will frame it.
Now, let’s position this back as zero, zero, zero, because what I wanna do is talk about some snap settings. Now, we snapped surfaces together, we snapped vertices together, but now, I wanna simply snap to a coordinate grid. One way I can do that is I can hold down the Control key as I’m moving the object, and it’s gonna snap to the grid. But what if I don’t want it to move one at a time?
Well, I can fix that by going up to Edit, down to Snap Settings, and I can change this right here. It can change them on the individual axes as well and also, scale and rotation snapping (which we don’t need that). Let’s say I have this off position here, and I wanna snap it to be one unit each; I could just have it selected and say Snap All Axes, and it snaps them all to the nearest unit that matches our snap settings. Or I could just say, well, I wanna snap just the X, I wanna snap just the Z, and then just the Y. But the Y’s already there, so then just the Y. Pretty cool.
So, that’s a good way to start moving stuff around if you need a uniform type of layout for your level.