Add rain to your Unity games! | Unity Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello hi I'm Louis lemon and today I'm going to show you how to make rain in uni for your games now I'm just assuming that you already know how to use unity and how to add stuff and do that so this can be a brief demonstration of how badly some simple stuff all my player up in the game object you can add them to game object like on hierarchy and team object I'm going to rename this particles make sure you go over to the transform right click it and hit reset right click the empty game object go down to effects add particle system you can rename this to something like rain or rainfall and make sure you reset the transform go down to shape hit the drop down arrow and then set it to box now on size you can change it to where everyone for me I'm going to change 20 on X and 20 on the Z make sure you have the velocity of a lifetime checked so we can give our brain some gravity then on the linear click the arrow and set it to random between two constants on the Y is set to negative 25 and negative 35. now go down to render and set the renderer mode to stretched goboard so it kind of looks more like rain falling then go back up to 3D start size click it and set it to random between two constants on the X set it to 0.1 and 0.1 and set y to 1 and 2 so it can have some variety on the Z set it to 0.1 and 0.1 make sure to set the start Speed to zero and if it looks like the rain is falling for any ground you have you can set the start of Lifetime to something like serial one you can also just lift up the particles if you want then turn down the alpha to something like 0.7 or 0.5 go to emission check it and set it to a 200 so there will be more particles if it's falling down in bursts you might have to turn up Max particles to a higher number go to Collision make sure it's check marks this will make the particles collide with objects around the scene so if we set the type to world the particles will bounce all over the place so we're going to have to set the damp into one and set the bounce to zero except the life loss to 0.4 you can change these settings for your liking and whatever you're trying to make why I have the particle system only on the player or around the player is because I don't want all these particles system all over the map lagging the game so I just have it on the player so when the player moves it just follows with the player so I hope this sort of helps you with making rain for your game and I'll see you next time bye
Info
Channel: LordEvilM44
Views: 21,270
Rating: undefined out of 5
Keywords: #unity #rain, unity, unity tutorial, unity rain tutorial, game dev, unity rain, game development
Id: MBVGUD5nZeA
Channel Id: undefined
Length: 2min 50sec (170 seconds)
Published: Tue Oct 25 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.