This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Content Creation
Content Optimization
Materials
Material Nodes Library
Art Samples
Tutorials

Unigine::Plugins::IG::WeatherLayerPrecipitation Class

Warning
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to Sim SDK edition to use it.
Header: #include <plugins/UnigineIG.h>
Inherits from: WeatherLayer

This class is used to represent a precipitation layer within a weather region. It enables you to define the type of precipitation (rain, snow, etc.), a node (ObjectParticles) to be used to visualize the precipitation effect, and manage the size of particles representing snowflakes or droplets.

WeatherLayerPrecipitation Class

Properties

Members


Ptr<Node> getEffectNode ( ) const#

Returns the node used to visualize the precipitation effect.

Return value

Node representing the precipitation effect in the world.

void setPrecipitationType ( int type ) #

Sets a value defining the type of the weather precipitation layer.

Arguments

  • int type - Integer value that defines the type of precipitation enabled for the weather layer:
    • 0 - disable precipitation
    • 1 - rain
    • 2 - snow
    Notice
    The set of precipitation types can be extended.

int getPrecipitationType ( ) const#

Returns a value defining the type of the weather precipitation layer.

Return value

Integer value that defines the type of precipitation enabled for the weather layer:
  • 0 - disable precipitation
  • 1 - rain
  • 2 - snow
Notice
The set of precipitation types can be extended.

void setParticlesSize ( float size ) #

Sets the size of particles used to visualize the precipitation effect (snowflakes, droplets, etc.).

Arguments

  • float size - New particle size, in units.

float getParticlesSize ( ) const#

Returns the current size of particles used to visualize the precipitation effect (snowflakes, droplets, etc.).

Return value

Particle size, in units.
Last update: 2021-11-30
Build: ()