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 - make it edgier!

The particles look a bit like snowflakes at the moment. We want something more like sharp glass fragments, so let's set up a new Material with a sharper-edged texture on it to make this effect look more convincing.

  1. In the Project panel, right-click an empty area and choose Create | Material.
  2. Name the Material Glass.
  3. In the Inspector panel, choose Particles | Additive in the Shader dropdown.
  4. Click on the Select button in the texture swatch, and choose glassSmash.png from the list.
  5. Select the Glass Smash Particle System from the Hierarchy panel.
  6. In the Inspector Panel, scroll down to the Particle Renderer component.
  7. In the Materials section, choose the Glass material from the drop-down list.

What just happened I ...

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