Reader small image

You're reading from  Unity 5.x Animation Cookbook

Product typeBook
Published inMay 2016
Reading LevelExpert
PublisherPackt
ISBN-139781785883910
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Maciej Szczesnik
Maciej Szczesnik
author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik

Right arrow

Using sprite sheets to animate particles


We can add sprite sheetanimation to Unity's particles to make them more interesting. This concept is especially useful for various explosions and magical effects.

Getting ready

To follow this recipe, we need an animation exported as a sprite sheet. If you want to know how to create a sprite sheet animation, you can read the Exporting a 2D sprite animation from a 3D package recipe in Chapter 32D and User Interface Animation, where you can find an example sprite animation.

Example sprite sheet animation

You can also open the provided example project and go to the Chapter 07 Special effects\Recipe 07 Using sprite sheets to animate particles directory. If you open the Example.unity scene there and play the game, you will see a particle system with explosions using sprite sheet animation. You can find the necessary sprite sheet in the Rigs directory.

 

How to do it...

To use sprite sheets for particles animation, follow these steps:

  1. Import the sprite sheet texture...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Animation Cookbook
Published in: May 2016Publisher: PacktISBN-13: 9781785883910

Author (1)

author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik