BlueSkies for Unity  1.8.1
BlueSkies.ParticleSystemGenerator Class Reference

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

Inheritance diagram for BlueSkies.ParticleSystemGenerator:
BlueSkies.IParticleSystemGenerator

Public Member Functions

void initialize (string particlePrefab, bool randomizeRotation=true)
 
void generateParticleSystem (ref ICloud cloud, Vector3[] points)
 
void generateParticleSystem (ref GameObject obj, Vector3[] points, uint type, float particleSize)
 
GameObject generateParticleSystem (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.ParticleSystemGenerator.componentsToPoints ( float[]  components)
static

Takes a float array and converts it to a vector3 array

Parameters
[in]
void BlueSkies.ParticleSystemGenerator.generateParticleSystem ( ref ICloud  cloud,
Vector3[]  points 
)

Creates a ParticleSystem for an existing Cloud

Parameters
[in]cloudCloud we are generating
[in]pointsPoints were cloud particles need to be

Implements BlueSkies.IParticleSystemGenerator.

void BlueSkies.ParticleSystemGenerator.generateParticleSystem ( ref GameObject  obj,
Vector3[]  points,
uint  type,
float  particleSize 
)

Creates a ParticleSystem for an existing GameObject

Parameters
[in]pointsCollection of points comprising the particle system particle locations
[out]objGameObject which to add the ParticleSystem to

Implements BlueSkies.IParticleSystemGenerator.

GameObject BlueSkies.ParticleSystemGenerator.generateParticleSystem ( Vector3[]  points,
float  particleSize 
)

Creates a new GameObject and ParticleSystem

Parameters
[in]pointsCollection of points comprising the particle system particle locations
Returns
The new GameObject with the ParticleSystem

Implements BlueSkies.IParticleSystemGenerator.

void BlueSkies.ParticleSystemGenerator.initialize ( string  particlePrefab,
bool  randomizeRotation = true 
)
Parameters
[in]particlePrefabParticle System prefab to instantiate

Implements BlueSkies.IParticleSystemGenerator.


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