Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
So now I want to continue to add a few extra elements to our scene.
All right, so once again, I'm just going to drag my game view over this side so I can see that.
And I actually won the moon in the background, so.
Well, I'm going to do here is click game object, 3D object and just a new quote.
OK, that's fine.
Where it is.
I'll just name this room and in the assets that I gave you.
Mobile game resources.
We've obviously got our texture of our movie moments.
It's just a texture.
We do need to convert this into a material.
So right click choose create a new material called it moon mapped the moon material.
And most materials when you first create them are the standard shader.
OK, we actually want this to be mobile and on light.
Now we can just drag this sprite directly into the base, or rather it's a texture, rather.
And then we've got a 3-D physical move going on there.
OK.
And so now I can just drag this material directly onto there.
Now, let me just see what's up in there.
It's not got the transparency.
So let me click mobile.
No, don't vertex.
That's not as good.
Uh.
Particles and most tipline know that's not very good.
And particles and additive.
Oh, that's so great either.
Alpha blended.
We go, OK.
Now, basically, it's got the dark background and with a texture like that one with placing it onto
three element, particularly when we're using mobile.
And a lot of them will not recognize the alpha elements.
So we're just using the particle one.
And so it's going to basically always be up against this black background black background element.
It shouldn't cause any sort of an issue.
So at the moment, it's not random because it's too far away from camera.
So what we want to do with this motion is basically just bring it forward until we can see it and bring
it up, and then I'm just going to make the size of this a little bit bigger.
Let's try five, five, five.
No, it's not, but maybe three by three.
That's better.
And then just get into a position where you like its position on the screen.
Now we've got the moon.
All right.
So it makes it slightly more realistic now because you actually believe that that's a night sky.
Not just the black background.
Once again, that he's never going to move.
So let's make sure that this static doesn't need a mesh collider.
Mesh collider is basically a physics object, will stop other objects from passing through it.
No need.
Nothing's ever going to get close to it.
So let's right click and remove that.
OK, I'm just going to parent the moon to the ground.
Another thing about static batching.
If you've got these objects, even though they may be marked as static, but they're in separate positions
on the hierarchy, sometimes it will not be static botched.
Whereas if you parent them molt one object, it has to read them sequentially like this, and then basically
it will static batch them all together.
Now, what they want is basically some border walls.
So and that's what I want the dungeon for, if I can find where that is.
I think it might be Gitmo known, the cartoon effects.
Stylized and painted dungeon free.
So if you go to the prefabs, we should have one that's called the wall.
All right.
Which is basically going to use this as and you can like listen to the scene.
And the over this side just here like this.
And maybe just make this a little bit bigger instead of one.
Let's make this a scale of two to on the one.
Oh, it's it's a really tall wall.
And then I just want to rotate this one around.
So these round 90 degrees on the Y.
And there we go.
All right.
Now it is using the standard material shader.
So and it is basically just one texture.
That's all it is.
It doesn't have any extra elements.
So let's click on Mobile and Unlet and instantly it looks a lot nicer.
And we're just going to basically piece these together now.
So we need multiple items of these walls.
So let's control and duplicate.
And if you've seen my other free tutorial on modular designs, you'll know how to do this very easily.
You just basically add a little bit of a gap between them.
And we old V on the keyboard allows us then to vertex snap.
And in this little square, we just click and drag until it snaps together.
All right.
And then you can't notice that if you don't notice difference between control and dig.
And let's move this one over here.
Once again, let's just press V and click and drag.
All right.
And it snaps.
So we're going to create a big wall on this side.
So I take all three of those walls.
Control Indy and less drag it this way.
Get close.
Press TV and snap.
And once again, let me take all three of these control de.
Press B and snow.
Okay, I think that should be enough going that way.
So now we've got all those walls.
So I'm just going to take this last one control and they just going to rotate it back.
So it's zero on the Y.
To bring this down to the bottom here, and then I'm just going to kind of snap the corner a bit together.
So it's just on this way, let's old the and not the bottom in place there, but we've got a little
bit of a gap.
So what I'm going to do manually just force that forward.
All right, there we go.
Now, you'll notice you can't tell the difference between the corner pieces.
It's good.
So if you've rotated your camera and you're looking behind you, all you'll see is a wall.
All right.
It's not going to look unusual or anything.
And D.
It's this way.
And then you snap these Silvy and snap together.
Take most of these items, control the snap together again.
Just hold V.
Let's take all four of these from the.
An old fee and just snap, you know, still need a few more, so I'll take maybe all four of these control
and the.
And then old V and just now.
All right, very good.
And now basically I'm just going to create another wall like that one.
So let's take the very last one.
The number, oh, 119.
For some reason, this is the last one control.
And they rotate around again and this time to go back to 90.
They are exactly the same texture on both sides.
And I'm just going to drag this back here and up here and then basically just snap the corners together.
Here we go, and I'm just going to manually push that one forward until I get the edge.
We go.
Let's start going forward again.
So drone deal is putting this forward.
The snap.
Take both of those items controlling the.
Press B and snow, take all four items, control and the forward.
Press B and snow.
Now, there we go.
Pretty much roughly about online.
And so, yeah, now we've got a nice surrounding walls.
So when our cameras rotating, we're going to see is walls on both sides.
And it's going to look like we're actually inside of some sort of a cemetery.
If you wanted to carry those walls on, obviously you could do what?
I think she'll be fine.
Now, all of those walls, two of the exact same texture.
And it is a slightly different texture, a different material to these items.
So it doesn't want that extra set, Pascoal.
And it will also add one extra Dracul, as long as we do all of these static.
So let's just select all of these items, smite them all the static, and then let's drag them all onto
the ground.
Great keeps them all together, sequential.
So now in the game, even though we can only see one of them, they're in a profiler.
Just want to double check, make sure there's no issues.
So let's just press play.
I think get started a bit and then for us, pause like anywhere and rendering and we've now got six
draw calls.
OK, so don't forget we added the moon as well.
So we've got a five that pascals.
That's the ground.
These items, the trees, the moon and the wall.
OK, and then obviously six separate draw calls because there's all the Draco also has to draw the background
as well.
OK, that's why there's always one extra.
Exactly the same amount of triangles and vertices roughly only slightly more.
And we've got backstroker calls of twenty four, which is interesting, but we've got to botches this
time.
OK, I wonder if I got exactly twenty four walls.
That's weird.
OK.
The use textures is around 10 megabytes.
It's only using five textures, which is great.
And keeping that really small and render textures has gone up to roughly 55 megabytes issues in seven.
All right.
Excellent.
Yes, I'm quite happy with that.
So what we're going to do in the next video is actually camera to start moving.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.