1 00:00:04,280 --> 00:00:05,180 ‫Welcome. 2 00:00:05,180 --> 00:00:09,530 ‫In this video, we are going to have a look at the user interface of unity. 3 00:00:09,530 --> 00:00:15,680 ‫So go ahead and open up unity and then create a new project by clicking on the new button right here. 4 00:00:16,070 --> 00:00:17,960 ‫Then you can give the project a name. 5 00:00:18,080 --> 00:00:25,610 ‫I'm going to call that one Unity Basics and I'm going to leave 3D as as the choice. 6 00:00:26,090 --> 00:00:31,460 ‫We don't need any asset packages that will be required if we already have some assets that we would 7 00:00:31,460 --> 00:00:32,330 ‫like to add. 8 00:00:32,330 --> 00:00:38,000 ‫For example, if we have some graphical objects already or if we have some functionality written somewhere 9 00:00:38,000 --> 00:00:39,830 ‫already, we can add that here. 10 00:00:40,070 --> 00:00:43,700 ‫Then the location is where it is saved on your machine. 11 00:00:44,530 --> 00:00:47,230 ‫We can enable unity analytics or not. 12 00:00:47,260 --> 00:00:53,110 ‫It will collect project data and provide the project metrics benchmarks against similar projects and 13 00:00:53,110 --> 00:00:54,670 ‫insights to player behavior. 14 00:00:55,060 --> 00:01:00,670 ‫As this is only really required as soon as we will publish the game, we don't need it for now. 15 00:01:01,030 --> 00:01:05,200 ‫So now let's go ahead and create a project by pressing on the button. 16 00:01:05,200 --> 00:01:08,320 ‫And then after a couple of seconds, unity should start up. 17 00:01:09,310 --> 00:01:13,690 ‫Then unity opens up and as you can see, there is already quite something to see. 18 00:01:13,690 --> 00:01:17,440 ‫A lot of different areas, a lot of different screen parts. 19 00:01:17,440 --> 00:01:22,330 ‫And now let's have a look at each of them in order to understand what's going on at the top, we have 20 00:01:22,330 --> 00:01:29,140 ‫the toolbar which allows us to change the way we can interact with the scene within Unity. 21 00:01:29,140 --> 00:01:34,690 ‫So for example, we can with the first one, we can move within the scene, with the first button with 22 00:01:34,690 --> 00:01:45,160 ‫this hand, then with the cross, we can go ahead and change objects positions within our game. 23 00:01:46,150 --> 00:01:49,660 ‫With the third one, we can change the rotation. 24 00:01:49,660 --> 00:01:52,930 ‫So for example, we can change our camera. 25 00:01:52,930 --> 00:01:59,920 ‫As you can see here in the camera preview, we can change the perspective of our camera, which means 26 00:01:59,920 --> 00:02:01,690 ‫we change the rotation. 27 00:02:02,470 --> 00:02:09,760 ‫Then the fourth button is there to change the size of an object, the scale, to be precise. 28 00:02:09,760 --> 00:02:12,760 ‫We will mainly do that within our inspector. 29 00:02:12,760 --> 00:02:14,500 ‫We'll have a look at that in a second. 30 00:02:15,010 --> 00:02:17,500 ‫And the fifth button is for UI elements. 31 00:02:17,500 --> 00:02:25,450 ‫So for the user interface and all of those five are the transform tools which allow us to change the 32 00:02:25,450 --> 00:02:28,510 ‫transform component of objects. 33 00:02:29,110 --> 00:02:34,120 ‫And in order to understand what the transform components are, we will have a closer look later on. 34 00:02:34,360 --> 00:02:40,840 ‫Now, in general, what you have is the hierarchy view, where you have all the different game objects 35 00:02:40,840 --> 00:02:46,570 ‫which are within your scene, so which are within your game or your level that you're currently in. 36 00:02:46,960 --> 00:02:53,470 ‫Then you have the scene view which allows you to see the game from a developer perspective where you 37 00:02:53,470 --> 00:02:54,730 ‫can see all the objects. 38 00:02:54,730 --> 00:02:57,160 ‫So let's just create a object real quick. 39 00:02:57,160 --> 00:02:58,420 ‫Let's create a cube. 40 00:02:59,170 --> 00:03:04,240 ‫This cube now is within our scene and we can see it here in the hierarchy on the left hand side. 41 00:03:04,240 --> 00:03:07,810 ‫And this cube has a different perspective here in the game view. 42 00:03:07,810 --> 00:03:12,880 ‫So this is how the game will actually look like if we start it now in the scene view, however, we 43 00:03:12,880 --> 00:03:22,870 ‫can move around with WAC or with the arrow keys and we can hold the mouse in order to right click, 44 00:03:22,870 --> 00:03:25,210 ‫hold the mouse in order to move around in here. 45 00:03:25,210 --> 00:03:30,040 ‫So you can see there are three objects in here currently in the hierarchy, which is the main camera, 46 00:03:30,040 --> 00:03:34,630 ‫the directional lighting, which is this little sun here and our cube. 47 00:03:34,750 --> 00:03:39,190 ‫And each of them has a different kind of information in the inspector. 48 00:03:39,190 --> 00:03:43,750 ‫So you can see that every single one of them has an inspector view. 49 00:03:43,900 --> 00:03:47,590 ‫And in that inspector view you have multiple information. 50 00:03:48,070 --> 00:03:56,020 ‫You have, for example, the transform component, which is always active for every single object that 51 00:03:56,020 --> 00:03:56,590 ‫there is. 52 00:03:56,590 --> 00:03:58,660 ‫You will have a transformed component. 53 00:03:58,660 --> 00:04:01,630 ‫There are no game objects which don't have the transform component. 54 00:04:01,630 --> 00:04:03,730 ‫However, they differ in other components. 55 00:04:03,730 --> 00:04:10,330 ‫So for example, the main camera has a has a camera component, a gooey layer component if layer, layer 56 00:04:10,330 --> 00:04:11,230 ‫and so on. 57 00:04:11,260 --> 00:04:17,860 ‫Our cube has a transform component, a cube component, a box collider component edge and a mesh render 58 00:04:17,860 --> 00:04:18,610 ‫component. 59 00:04:18,610 --> 00:04:21,550 ‫You don't need to understand yet what all of those are. 60 00:04:21,580 --> 00:04:23,200 ‫We will cover them later on. 61 00:04:23,680 --> 00:04:28,630 ‫It's just important for you to understand that the inspector gives you detailed information about the 62 00:04:28,630 --> 00:04:31,180 ‫game object that you currently have selected. 63 00:04:31,900 --> 00:04:37,030 ‫Then we have the assets store here in the center as well, and here you can search for assets. 64 00:04:37,030 --> 00:04:41,110 ‫They can either be free or paint assets which you then can use for your games. 65 00:04:41,110 --> 00:04:46,420 ‫So for example, if you want to have specific graphics and you find them in the asset store, you can 66 00:04:46,420 --> 00:04:47,650 ‫use them for your game. 67 00:04:47,650 --> 00:04:50,860 ‫However, you have to of course consider how much they cost. 68 00:04:50,890 --> 00:04:52,420 ‫Many are free. 69 00:04:52,420 --> 00:04:56,470 ‫You can find very great assets for free without having to pay anything. 70 00:04:57,490 --> 00:05:04,300 ‫Then we have at the bottom our project view which allows us to see all our project elements. 71 00:05:04,300 --> 00:05:10,900 ‫So for example, all the assets that we have and assets could be anything, it could be any script, 72 00:05:10,900 --> 00:05:19,690 ‫it could be any player object, any graphic, any kind of resource that we are using for our game and 73 00:05:19,690 --> 00:05:22,360 ‫that is physically stored on your hard drive. 74 00:05:22,390 --> 00:05:24,040 ‫You can find it in the projects folder. 75 00:05:24,040 --> 00:05:32,290 ‫So for example, if I create a C-sharp script here and I'm going to call it test, then I can reveal 76 00:05:32,290 --> 00:05:39,190 ‫it in Finder V are right click and reveal in Finder and that will show me my test case file. 77 00:05:39,310 --> 00:05:44,110 ‫Then you have the console which allows you to see programming relative. 78 00:05:44,380 --> 00:05:49,660 ‫Information that you can debug, for example, or that you can print via code, which allows you to 79 00:05:49,660 --> 00:05:55,910 ‫see where in the code you are currently or what kind of code was run at a specific point and so on. 80 00:05:55,930 --> 00:05:58,300 ‫We will use the console later on as well. 81 00:05:58,930 --> 00:06:01,540 ‫These are not all the relevant windows that there are. 82 00:06:01,570 --> 00:06:07,090 ‫You can, for example, go to window and you can find the windows here as well. 83 00:06:07,090 --> 00:06:14,890 ‫So for example, if you somehow manage to get rid of your game tab, you can always find it on the window 84 00:06:14,890 --> 00:06:19,060 ‫game and it will be opened up as a pop up. 85 00:06:19,060 --> 00:06:22,040 ‫You can drag it into this area here in the center again. 86 00:06:22,060 --> 00:06:28,390 ‫So to summarize it, we have the hierarchy view on the left hand side, we have the toolbar at the top, 87 00:06:28,390 --> 00:06:30,580 ‫we have the scene view and the center. 88 00:06:31,060 --> 00:06:33,130 ‫When clicking on the scene, we have the game view. 89 00:06:33,130 --> 00:06:39,790 ‫If we click on game, then we have the inspector window on the right hand side and the project window 90 00:06:39,790 --> 00:06:40,630 ‫at the bottom. 91 00:06:41,110 --> 00:06:46,450 ‫But that doesn't have to be like that, and I'll show you what that means in the next video. 92 00:06:48,040 --> 00:06:51,400 ‫But before that, I want to show you some more buttons. 93 00:06:51,400 --> 00:06:57,910 ‫We have those two buttons here, which I haven't covered yet, and they are transformed gizmo toggles. 94 00:06:57,910 --> 00:07:00,970 ‫We will use them later on when moving an object. 95 00:07:00,970 --> 00:07:08,710 ‫So for example, we have this object here and it has a position and it has a local position or a global 96 00:07:08,710 --> 00:07:13,690 ‫position and we can center it or pivoted what that means will be covered later on. 97 00:07:14,020 --> 00:07:18,280 ‫Then we have those three buttons here, which is play, pause and step. 98 00:07:18,280 --> 00:07:22,990 ‫So this one will start the game, this one will pause the game and that one will go to the next step. 99 00:07:23,260 --> 00:07:30,610 ‫So, for example, if I run a play button or press the play button, I will go into play mode and we 100 00:07:30,610 --> 00:07:35,620 ‫can see I'm in the game view now and I can see our little queue here. 101 00:07:35,800 --> 00:07:36,280 ‫All right. 102 00:07:36,280 --> 00:07:42,190 ‫So we will see in the next video how we can change our setup and change the interface to our liking. 103 00:07:42,220 --> 00:07:43,030 ‫See you there.