BlueSkies for Unity  1.8.1
BlueSkies.ParticleEmitterGenerator Class Reference

Generates ParticleSystem from a collection of spatial points. More...

Public Member Functions

void initialize (string particlePrefab, bool randomizeRotation=true)
 
void generateParticleEmitter (ref ICloud cloud, Vector3[] points)
 
void generateParticleEmitter (ref GameObject obj, Vector3[] points, uint type, float particleSize)
 
GameObject generateParticleEmitter (Vector3[] points, float particleSize)
 

Static Public Member Functions

static Vector3[] componentsToPoints (float[] components)
 

Detailed Description

Generates ParticleSystem from a collection of spatial points.

Member Function Documentation

static Vector3 [] BlueSkies.ParticleEmitterGenerator.componentsToPoints ( float[]  components)
static

Takes a float array and converts it to a vector3 array

Parameters
[in]
void BlueSkies.ParticleEmitterGenerator.generateParticleEmitter ( ref ICloud  cloud,
Vector3[]  points 
)

Creates a ParticleEmmiter for an existing Cloud

Parameters
[in]cloudCloud we are generating
[in]pointsPoints were cloud particles need to be
void BlueSkies.ParticleEmitterGenerator.generateParticleEmitter ( ref GameObject  obj,
Vector3[]  points,
uint  type,
float  particleSize 
)

Creates a ParticleEmitter for an existing GameObject

Parameters
[in]pointsCollection of points comprising the particle emitter particle locations
[out]objGameObject which to add the ParticleEmitter to
GameObject BlueSkies.ParticleEmitterGenerator.generateParticleEmitter ( Vector3[]  points,
float  particleSize 
)

Creates a new GameObject and ParticleEmitter

Parameters
[in]pointsCollection of points comprising the particle emitter particle locations
Returns
The new GameObject with the ParticleEmitter
void BlueSkies.ParticleEmitterGenerator.initialize ( string  particlePrefab,
bool  randomizeRotation = true 
)
Parameters
[in]particlePrefabParticle Emitter prefab to instantiate

The documentation for this class was generated from the following file: