O'Reilly logo

Unity 4 Game Development HOTSHOT by Jate Wittayabundit

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 rocket prefab and particle effects

In the previous section, we got a controllable character with all the animations and mouse rotation, but there is nothing really happening when we click on the left mouse button. So, in this step, we will create the rocket prefab object and all of the particle effects for this prefab object, which are Smoke, Fire Trail, and Explosion so that we can use them in the next step.

Engage thrusters

Let's get started. To create a Rocket prefab object and particle effects, perform the following steps:

  1. First, we will create the Explosion prefab by going to GameObject | Create Empty and name it Explosion and reset its Transform values as follows:

    Transform

    Position

    X: 0, Y: 0, and Z: 0

    Rotation

    X: ...

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