O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

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

Time for action - contain the explosion

Let's place this Glass Smash Particle System into a Prefab so that it's ready to use with our falling beer steins.

  1. In the Project panel, right-click and choose Create | Prefab.
  2. Rename the new Prefab Glass Smash Prefab.
  3. Click-and-drag the Glass Smash Particle System from the Hierarchy panel into the empty Glass Smash Prefab. The icon lights up blue. That's how you know it's working.
  4. With the Particle System tucked safely away into the Prefab, delete the Glass Smash Particle System from the Scene (select it in the Hierarchy panel, and press the Delete key on your keyboard).

Tip

Clean up

I've kept my Project panel neat and tidy by putting all of my Prefabs into a folder. I've done the same thing with my scripts, ...

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