O'Reilly logo

Learning 2D Game Development with Unity®: A Hands-On Guide to Game Creation by James A. Henley, Matthew Johnson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Particle Effect for Coin Boxes

The best way to understand a system is to put it to use, so let’s create a particle effect to play when the player strikes a coin box. We’ll make it something simple, using the most basic elements of the particle system. Take the following steps to get things started:

1. Use GameObject > Create Other > Particle System to create a GameObject with a Particle System Component.

2. Select a recognizable icon, such as a purple diamond, so that we can quickly see our particle system in the Scene View.

3. Name the GameObject “particle_coinBox.”

We now have a standard particle system that we can work from. We’ll look at the settings, one at a time, to create an appropriate visual effect for when the player picks ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required