O'Reilly logo

Unity 2D Game Development Cookbook by Claudio Scolastici

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

Particle systems

To solve the problem of playing the audio and destroying the game object at the same time, we will use a particle system. A particle system is a complex game object that emits so-called particles in the game scene. Particle effects are largely used in video games for various graphic touches—game object trails, glitter, smoke, explosions, rain, snow, and so on.

Particles, by themselves, are multiple instances of (usually) tiny game objects with a mesh, transparent texture, and direction in the World Space. These particles sprout from a component of the particle system called Emitter.

The Emitter emits a large number of particles over time, and then these particles fly through the scene, according to several user-defined parameters. ...

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