This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Landscape Tool
Sandworm
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World Nodes
Звуковые объекты
Объекты поиска пути
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
Унифицированный язык шейдеров UUSL
Плагины
File Formats
Rebuilding the Engine Tools
GUI
Двойная точность координат
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
Работа с контентом
Оптимизация контента
Материалы
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

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

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: 13.12.2021
Build: ()