O'Reilly logo

Building a Game with Unity and Blender by Lee Zhi Eng

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

Torch fire

Next, we will learn how to create a more sophisticated particle by using a texture sheet. For this example, we will be creating a torch and a particle system that will be used as the torch fire. Again, we will create an empty game object and apply a new particle system to it. Then, we will set the settings in the Main module:

  • Duration: 1
  • Looping: Enable
  • Start Lifetime: 1
  • Start Speed: 0
  • Start Size: 2
  • Max Particles: 1
Torch fire

Then, set the emission rate to 1. In this case, we only need one single particle to be spawned by the particle system and kept alive until the animation has finished playing.

Next, we will create a new material and apply the following ...

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