BlueSkies for Unity  1.8.1
BlueSkies.CloudParticleSystemGenerator Class Reference

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

Inheritance diagram for BlueSkies.CloudParticleSystemGenerator:
BlueSkies.ICloudParticleSystemGenerator

Public Member Functions

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

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.CloudParticleSystemGenerator.componentsToPoints ( float[]  components)
static

Takes a float array and converts it to a vector3 array

Parameters
[in]
void BlueSkies.CloudParticleSystemGenerator.generateCloudParticleSystem ( 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.ICloudParticleSystemGenerator.

void BlueSkies.CloudParticleSystemGenerator.generateCloudParticleSystem ( 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.ICloudParticleSystemGenerator.

GameObject BlueSkies.CloudParticleSystemGenerator.generateCloudParticleSystem ( 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.ICloudParticleSystemGenerator.

void BlueSkies.CloudParticleSystemGenerator.initialize ( string  particlePrefab,
bool  randomizeRotation = true 
)

Initialize a Clouds particle values

Parameters
[in]particlePrefabParticle System prefab to instantiate
[in]randomizeRotationWill this particle rotate

Implements BlueSkies.ICloudParticleSystemGenerator.

bool BlueSkies.CloudParticleSystemGenerator.populateCloudParticleSystem ( ref GameObject  obj,
Vector3[]  points,
uint  type 
)

Creates the particles for a cloud

Parameters
[in]objGameObject
[in]pointsArray of Vector3 that hold each particles point
[in]typeCloudType
Returns
TRUE if particle system was populated

Implements BlueSkies.ICloudParticleSystemGenerator.


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