Book Image

Building Levels in Unity

By : Volodymyr Gerasimov
Book Image

Building Levels in Unity

By: Volodymyr Gerasimov

Overview of this book

Table of Contents (17 chapters)
Building Levels in Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
4
Dealing with Basic Animations
Index

Coin particles


As for the practical example, I would like you to create a particle system that will rain money upon opening the chest, like the one in the following screenshot:

Everything required to create this particle effect can be found by navigating to Chapter 9 | CoinParticle.

So, the idea is that as soon as we enter the Play mode and press the space bar, the chest will play opening animation, and, at that moment, the particle system should start emitting coins in the air that will eventually fall down, forced by the gravity, and roll onto the floor.

Here is a list of particle system modules that you will require to create that particle effect:

  1. Emission: This module is a kind of obvious choice—those coins need to be emitted after all.

  2. Shape: This module is the same as the previous one, which requires source and direction to be properly configured.

  3. Rotation by Speed: This module is the one we didn't talk about, but it is quite simple to use. It changes the angular velocity of a particle...