O'Reilly logo

Developing AR Games for iOS and Android by Dominic Cushnan, Hassan EL Habbak

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

Adding a Particles prefab

Particles in Unity is a very useful tool that many developers use. With it, it is possible to create fog, dust, flames, explosions, and all sorts of effects. The effect on resources is usually minimal, as Particles uses small 2D images animated to give the effect needed, hence the name Particles.

For our app, it will be useful to add dust particles appear when we whack the mole with the balls fired at them. Although learning how to create particles is outside the scope of this book, we will see how we can add one to the scene that is already made, because there are a number of free particles available through the Unity store.

  1. Import the package named DustParticles to the project. Add the prefab we just imported to the scene. ...

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