[No coding] Creating Particles

Information
Step 1
In this lesson we are going to be creating particles!
Ezgif.com video to gif %285%29
Step 2
Create a new scene or stay on the current scene/project if you have Unity opened.
Temp1544228089
Step 3
Right click in the Hierarchy Space, Create a Particle System
Temp1544228308
Check Your Work
Step 4
You should see a default particle appearing in the Scene, make sure it is playing.
Temp1544228344
Step 5
Make sure the particle system is selected in the hierarchy, and then look at the inspector.
Temp1544228468
Step 6
Change the lifetime to 0.5. You'll see that particles will disappear in 0.5 seconds.
Temp1544228572 Temp1544228596
Step 7
Change the Start speed to 20
Temp1544228758

You will see the particles will travel a lot faster and still disappears after 0.5 seconds

Step 8
Click on Shape to open the Shape menu of this particle
Temp1544228886
Step 9
Click and drag this point towards the center until you can't drag it anymore
Temp1544228964
Step 10
Temp1544228980
Step 11
Change the Start Lifetime back to 5 you will see that particles now disappear after 5 seconds.
Temp1544229116
Step 12
Change all x,y,z axis to 0.
Temp1544229502
Step 13
Go back to the Hierarchy and create a 3D cube
Temp1544229606
Step 14
Change the scale all to 5 and place the cube in front of where the particle is shooting.
Temp1544229707
Step 15
Select the particle system in the hierarchy, and enable the collision tab.
Temp1544229839
Step 16
Change the collision type to World
Temp1544229881
Step 17
Use the rotation tool and tilt the cube slightly upwards.
Temp1544229962
Check Your Work
Step 18
Check to make sure that the collision works.
Temp1544230525
Step 19
Create another 3D object called a Sphere and move the particle to collide with it.
Step 20
Rename our current Particle System as "bullets"
Temp1544385008
Step 21
Right click on the Hierarchy window and create another Particle System, name this one "explosion"
Temp1544385056
Step 22
Make sure the particle system called "Explosion" is selected, go to inspector and change the shape to Sphere.
Step 23
In the inspector of the Explosion particle, change start lifetime to 0.1, start speed to 50, and emission rate to 50.
Temp1544385928
Step 24
Now enable color over life time and click the white color box.
Temp1544386069
Step 25
Make sure the left key is selected and then right click the small color box.
Temp1544386225
Step 26
Start with the color yellow.
Temp1544386278
Step 27
Next part is tricky. Click the red circle, the grey area under the color box to create another point.
Temp1544386364
Step 28
Now with this 2nd point selected, click on the small color box again.
Temp1544387457
Step 29
Probably try an orange color for the second poit.
Temp1544387504
Step 30
Lastly add another point and make it a red color.
Temp1544387554
Step 31
Next select the last point of the top row for transparency. Change the alpha to around 140.
Temp1544387669

Also make the last color point red so that it doesn't show any white.

Step 32
Select the explosion particle in the hierarchy to play it. It should look something like this.
Step 33
Next we are going to do particle collisions! Click and drag the Explosion particle into the Bullets particle.
Step 34
Make sure the Explosion particle is selected, change emission rate to 0, and add min burst to 1, max to 10.
Temp1544388346
Step 35
Now Select the Bullets particle and enable Collision. Change the collision type to World.
Temp1544388412 Temp1544388437
Step 36
Now while the Bullet particle is still selected, enable sub emitters and change emitter type to collision.
Temp1544388533
Step 37
Click and drag the Explosion child object of Bullets and drag it onto the sub emitter space.
Check Your Work
Step 38
Now you can see the explosion particle is used whenever a white bullet collides with something!
Planning
Step 39
Lastly we want to fix the simulation space.

When you click and drag a particle, ALL particles follows it, which isn't supposed to happen.

Step 40
To fix this, select the bullets particle system, and change the simulation space to world.
Temp1544389073
Check Your Work
Step 41
Now this should work when we drag the bullets object around!
Step 42
Time for particle customization! Let's choose a small picture from the internet to have it as your particle.

Click and drag your file into the projects asset tab. I decided to choose a bubble.

Step 43
Right click on the project assets panel, click create, create a material.
Temp1544390088
Step 44
Name it whatever you want, I make it the same name as the picture just so that it doesn't get confusing.
Temp1544390136
Step 45
Make sure the Material (Not the imported picture) is selected, change the shader to Additive(soft)
Temp1544390237
Step 46
New properties appear, click on the image selector, select your image, and see the preview of the particle!
Temp1544390412
Step 47
Select your bullets particle, this time go to the Renderer and change the material to the material that you created!
Challenge
Step 48
Can you do the same for the explosion effect?
Temp1544390823

I used the Minecraft's Fire particle for this example.

Step 49
Now let's add gravity and bouncing to our explosion effect! Create a plane.
Temp1544391044
Step 50
Resize the plane so that it's big enough to be under the particles.
Temp1544391103
Step 51
Select the Explosion particle and change the gravity modifier to 1 and make sure the simulation space is world.
Temp1544391284

Also make start lifetime as 3 and start speed as 10 so we can see it in motion better.

Temp1544391330

Also enable the collision for the Explosion particle.

Check Your Work
Step 52
Now when an explosion particle spawns, it falls to the floor and bounces off of it!
Step 53
Let's try using the Noise effect. Here's a comparison between Without Noise and with noise.

The video above is Without using Noise.

The video above is with Noise added!

Step 54
Let's add noise to your explosion particle and maybe give it a Strength of 5.
Temp1544392426

The higher the strength the more it will shake!!

NOTE: Noise usually uses more CPU(processing power) so make sure your computer can handle this

Check Your Work
Step 55
Now those explosion flames should be rising like fire!
Step 56
Next let's work on particle trails! First let's change our emission shape for the Bullet particle.

Make sure the bullet particle system is selected, select the shape effect in the inspector and then click & drag the tip of this cone.

Step 57
With bullet particle selected, enable Trails. Uh oh, it shows a pink trail, that means it's missing a material!
Step 58
Let's a create the trail material then! Go to the project panel, right click and create a material.
Temp1544393140
Step 59
Select the trail material you just created, go to inspector, for rendering Mode, choose Transparent.
Temp1544393208
Step 60
Click the Albedo color box, choose a color and then change the alpha down a bit more.
Step 61
Go back and select your bullet particle, you'll see under trails it'll say it's missing a material. Put it in Renderer.
Temp1544393422
Check Your Work
Step 62
Now the trails should work!
Challenge
Step 63
How about we change the bullet particle to rain? How would we do this? (Position it above the plane and change shape.
Challenge
Step 64
The sky is the limit! Start creating other particles and play with the settings you've learned!
Step 65
Want to go above and beyond on particles? Let's see how other people made particles!
Temp1544394724

Go to the asset store and search for "particle" and make sure you filter it by "Free Only"
Then import.

Step 66
Whenever you download an asset, prebuilt stuff are usually called "prefabs" locate that folder and try it out!

These "Hit" particles looks like it can work nicely with collision, so we'll add them to a particle system's collision!

Challenge
Step 67
Use what you learned to edit particles from pre-existing particles on the asset store!
Step 68
You've finished this lesson! Click submit and learn about animation in the next lesson!
[No coding] Creating Particles Info

Account

MVCode Clubs

Created By

Nepgear tina (instructor)

Course:

[No coding] Unity Basics

Access Level

public

For Teachers and Schools

Teach coding to your students with MVCode Teach

MVCode offers an integrated product designed to teach coding to students.

Learn more about MVCode Teach