BlueSkies for Unity  1.8.1
BlueSkies.Precipitation Class Reference

Manipulation of a Precipitation Type Snow,Sleet or Rain. More...

Inheritance diagram for BlueSkies.Precipitation:
BlueSkies.IPrecipitation BlueSkies.Rain BlueSkies.Sleet BlueSkies.Snow

Public Member Functions

 Precipitation (string prefab)
 
void update (ICloud _currentCloud)
 
void setIntensity (float intensity)
 
void render (float delta)
 
void setEffectRange (float near, float far, bool useDepth)
 
void getEffectRange (out float near, out float far, out bool useDepth)
 
void setEnabled (bool enabled)
 

Protected Attributes

float _visibility
 
float _fogDensity
 
float _intensity
 
float _nearClip
 
float _farClip
 
bool _useDepthBuffer
 
GameObject _particleSystemPrefab
 
ParticleSystem _particleSystem
 
float _lowParticleSize = 0f
 
float _highParticleSize = 0f
 
float _lowStartSpeed = 0f
 
float _highStartSpeed = 0f
 
float _lowEmissionRate = 0f
 
float _highEmissionRate = 0f
 

Properties

float Intensity [get, set]
 
float FogDensity [get, set]
 
float Visibility [get, set]
 
Vector3 Position [get, set]
 
Vector3 Shape [get, set]
 
- Properties inherited from BlueSkies.IPrecipitation
float Intensity [get, set]
 
float FogDensity [get, set]
 
float Visibility [get, set]
 
Vector3 Position [get, set]
 
Vector3 Shape [get, set]
 

Detailed Description

Manipulation of a Precipitation Type Snow,Sleet or Rain.

Constructor & Destructor Documentation

BlueSkies.Precipitation.Precipitation ( string  prefab)
Parameters
[in]prefabResource path to the prefab to instantiate for this effect

Member Function Documentation

void BlueSkies.Precipitation.getEffectRange ( out float  near,
out float  far,
out bool  useDepth 
)

Retrieves the effect range for this precipitation effect.

Parameters
[out]near
[out]far
[out]useDepth

Implements BlueSkies.IPrecipitation.

void BlueSkies.Precipitation.render ( float  delta)

Renders this precipitation effect

Parameters
[in]deltaDelta time since last frame

Implements BlueSkies.IPrecipitation.

void BlueSkies.Precipitation.setEffectRange ( float  near,
float  far,
bool  useDepth 
)

Sets the effect range for this precipitation effect.

Parameters
[in]near
[in]far
[in]useDepth

Implements BlueSkies.IPrecipitation.

void BlueSkies.Precipitation.setEnabled ( bool  enabled)

Enables and disables this precipitation effect

Parameters
[in]enabled

Implements BlueSkies.IPrecipitation.

void BlueSkies.Precipitation.update ( ICloud  _currentCloud)

Updates current precipitation

Parameters
[in]_currentCloud

Implements BlueSkies.IPrecipitation.


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