1 00:00:01,070 --> 00:00:10,189 well in this video we are going to see the theme of the camps then here I was telling you we are going to insert a canvas 2 00:00:14,070 --> 00:00:18,670 I go to hui and in hui I select canvas 3 00:00:40,299 --> 00:00:50,399 I select canvas I introduce a canvas ok and I have the canvas and it will add the canvas and the 4 00:00:50,399 --> 00:01:03,399 you have to remember that it is to control the possible events that can happen within the objects that we are going to put in the canvas of the objects or of the games 5 00:01:03,399 --> 00:01:13,060 object, that is, if we put a button, the one that is going to control that we click and it works for us or 6 00:01:13,060 --> 00:01:19,959 that we go through the typical of the juggernaut when we go over and all those types of events 7 00:01:19,959 --> 00:01:26,519 are going to control this and not that it is called it exists and you have to have it always you can have 8 00:01:26,519 --> 00:01:31,680 several chambers but you are only going to have an event system with the event system 9 00:01:34,829 --> 00:01:41,329 we are not going to touch it you have here a series of properties but I am not going to touch it when 10 00:01:41,329 --> 00:01:52,969 working with vr or augmented reality well there I do modify it ok but right now not right now 11 00:01:52,969 --> 00:01:58,370 what interests us is the game object of the canvas type and here what I was telling you the other day is 12 00:01:58,370 --> 00:02:07,969 that when we select the game object and we see the inspector window, well, we already see that it has 13 00:02:07,969 --> 00:02:13,969 its different components, it is worth remembering that all the games have the transfer, they can be 14 00:02:13,969 --> 00:02:19,849 rotated, they can be scaled, they can be modified, they will all have that, even the empty, which is the 15 00:02:19,849 --> 00:02:25,909 only component that they are going to have is worth the transfer of transfer when it is that we can change 16 00:02:25,909 --> 00:02:34,310 the pivot we can change more information ok we have the canvas and in the canvas component 17 00:02:34,310 --> 00:02:41,030 the first thing I found was the render mode then here we have three different options 18 00:02:41,030 --> 00:02:46,550 the overlay and the camera and the workspace the overlay and the camera right now for us they are the same 19 00:02:46,550 --> 00:02:55,610 although they are not the overlaid hits the canvas does not leave space between what would be the camera 20 00:02:55,610 --> 00:03:03,490 is worth the gain of the camera and that canvas so it will always be visible and everything we load 21 00:03:03,490 --> 00:03:11,250 in our scene will always be behind that canvas if you see it as layers the canvas 22 00:03:11,250 --> 00:03:18,449 siempre va a estar arriba del todo el camera sin embargo lo que nos va a dejar es asociar 23 00:03:19,969 --> 00:03:26,129 bueno primero asociamos una cámara vale la que estemos utilizando al final los cambios 24 00:03:26,129 --> 00:03:30,849 los podemos utilizar para diferentes cámaras que nosotros hasta ahora sólo estamos usando 25 00:03:30,849 --> 00:03:40,289 una vale aquí me permite el meter una distancia vale eso significa que puede haber objetos que 26 00:03:40,289 --> 00:03:46,530 are between the canvas and the camera, that is, that it passes in front when in the overlaid they could only 27 00:03:46,530 --> 00:03:53,849 pass from behind, that allows me to give a certain depth to those canvas, then we 28 00:03:53,849 --> 00:04:00,050 here by default we are going to always use the overlaid and then the workspace the one that is 29 00:04:00,050 --> 00:04:06,669 associated with the 3d space that is for when we are making some kind of good game because it 30 00:04:06,669 --> 00:04:09,330 shows information that shows information to the user 31 00:04:11,909 --> 00:04:17,410 because when it approaches a certain point of a scene when you are going to take some coin 32 00:04:17,410 --> 00:04:23,050 when an event happens some trigger when some trigger jumps some collider some 33 00:04:23,050 --> 00:04:31,230 thing of these then we can generate chambers that are at a certain point ok then 34 00:04:31,230 --> 00:04:39,850 that we will do when you see with gonzalo the mechanical part of the game is worth then here I am going to leave 35 00:04:41,430 --> 00:04:50,730 to the over line and with this for now it is enough for me the following was in the component in the canvas 36 00:04:50,730 --> 00:04:59,310 is that it is how I want that canvas to be scaled with respect to the resolution of the screen 37 00:04:59,310 --> 00:05:04,310 So by default it is always in a constant size. 38 00:05:04,310 --> 00:05:15,310 I always put it here with scaling it with the size of the screen and that is because in the end we are doing the multi-platform degree. 39 00:05:15,310 --> 00:05:21,310 This means that you can make the same application for several platforms. 40 00:05:21,310 --> 00:05:25,310 I mean for a laptop, for a PC, for the mobile, for ... 41 00:05:25,310 --> 00:05:36,769 ok then with the scale with screen site there we can playing with the anchor points and reorganizing 42 00:05:39,709 --> 00:05:45,649 our application ok then when I tell you the scale with screen site what 43 00:05:45,649 --> 00:05:52,370 is going to tell me is what resolution I want to work by default ok then this 44 00:05:55,310 --> 00:06:05,689 you could leave it without modifying the resolution I do not advise it because in the end you are going to see it 45 00:06:05,689 --> 00:06:11,509 well in your editor of unity but then when you give it to play you will not see it as well 46 00:06:11,509 --> 00:06:20,149 ok then well I only put the resolution that the laptop has and in principle with what 47 00:06:20,149 --> 00:06:26,410 the canvas issue I do not make any more modifications although yes to gain quality issues 48 00:06:26,410 --> 00:06:33,050 to optimize there are more options ok but we will see them ok then 49 00:06:36,269 --> 00:06:41,149 the canvas is the canvas where I am going to draw all the green objects 50 00:06:41,149 --> 00:06:53,970 of the part of the user interface, okay, then, well, this is the canvas, I leave this video here so that it is not too long.