Wind using the particle system

Here is another tutorial using unity's particle system. We are making wind particles.

You can see this effect in my game Super Eyebrow princess.



I'll show you how to make two types of wind particles

Loop and Swirl

Image

Lets start the tutorial

Open up a unity project and in your scene create a new particle system.

Image

Decrease start size to 0.1

Decrease Max Particles to 1

Change the alpha to zero for the Start color, this will make the particle itself transparent ( we need to see the wind trail and not the particle)

Image

Under shape change the shape to a box

Image

Check mark velocity over lifetime.

Change linear to curve.

Image

Change the x and y curves as follows.

This will give it the loopy/ swirly motion. You can play around with these curves to give the particle any kind of motion.

For the loop

For X

Image

Y

Image

For the swirl

For X

Image

Y

Image

The Particles are now moving the way we want them to. But to see the wind we need to add a trail to these particles

Check mark trail

If the trail is pink, Give the trail default line material in under Renderer.

Uncheck inherit particle color

Image

Make color over lifetime a gradient and make it so that it ends with 0 alpha value at the end. This makes it so that when the trail disappears its a bit smoother.

Image

Change width over trail to curve and make the curve like this. This makes the start and end of the trail thinner than the middle.

Image

This finally gives us our desired effect. You can now increse the number of Max particles and increase the box size to view tons of wind particles over a large area.

And thats pretty much it for the tutorial. Hope you learnt something new. Feel free to recreate this effect in your games!