Adding particle effects
Typically used for effects that are natural or organic, such as fire, smoke, and sparks, particle systems create objects that are designed to be as low cost as possible, called particles. Due to this, we can spawn many of the particles at once with a minimal performance cost. One of the easiest types of particle systems to create is a trail to follow our player, so let’s add one of those now using the following steps:
- Select Player in the Hierarchy window, and then right-click and select Effects | Particle System.
This will make this system a child of the player, which will be good for what we are going to do.
- In the Particle System component, change Start Speed to
0
and Simulation Space to World. Then, change Start Color to a color that stands out, such as purple. - Open up the Shape section by clicking on it. Change Shape to Sphere and set Radius to
0
(it will automatically change to0.0001
).
This is a step in the right...