Particle Spiral Effect

Author: James Allen (Malveka)

Description
This script spawns "spiral" particle effects, such as might be used for portals, whirlpools, galaxies, etc. The script can be adjusted to spawn any number of particle systems for repeating spiral effects. This can be useful, for example, when the particle effect is parented to a moving object.

Features

 * Set the number of arms of the spiral and the particle density of each arm
 * Create spirals in a plane or in three dimensions.
 * Control the taper of the spiral arms
 * Control fading of the spiral arms
 * Autodestructs when the effect is complete
 * Set a predetermined number of effect spawns at a specified rate

How to Use

 * Assign this script to a transform or game object at the location where the spiral effect will be centered. The spiral will be generated in the plane specified by the script transform's red axis (right, x) and blue axis (forward, z)and centered around the green axis (up, y).
 * Create a prefab that contains a particle system (emitter, animator, renderer). Configure the prefab with your desired particle material, size and energy settings.  This script will override the Min/Max Emission settings based on your setting of numberOfArms and particlesPerArm.
 * Drag the prefab to the Particle Effect field of this script in the Inspector.

More detailed descriptions of each setting are in the script itself.

Samples
Here are just a few of the many kinds of effects you can achieve.