This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
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
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

ParticleModifierScalar Class

Warning
The scope of applications for UnigineScript is limited to implementing materials-related logic (material expressions, scriptable materials, brush materials). Do not use UnigineScript as a language for application logic, please consider C#/C++ instead, as these APIs are the preferred ones. Availability of new Engine features in UnigineScipt (beyond its scope of applications) is not guaranteed, as the current level of support assumes only fixing critical issues.

This class is used to represent a particle system modifier, that controls a scalar parameter (radius, velocity, etc.). Modifiers are used to control how various parameters of particle systems change over the particle's life time.

ParticleModifierScalar Class

Members


void setCurveScale ( float scale ) #

Sets a new curve scale for the modifier. The scale defines the maximum possible value for the parameter controlled by the modifier.

Arguments

  • float scale - Curve scale value to be set for the modifier.

float getCurveScale ( ) #

Sets a new curve scale for the modifier. The scale defines the maximum possible value for the parameter controlled by the modifier.

Return value

Current curve scale set for the modifier.

void setConstant ( float constant ) #

Sets a new constant value for the modifier. In the CONSTANT modifier mode the actual value of the controlled parameter remains equal to this constant throughout the particle's lifetime.

Arguments

  • float constant - Constant value to be set for the modifier.

float getConstant ( ) #

Returns the current constant value set for the modifier. In the CONSTANT modifier mode the actual value of the controlled parameter remains equal to this constant throughout the particle's lifetime.

Return value

Current constant value set for the modifier.

void setConstantMin ( float min ) #

Sets a new minimum constant value for the modifier. This constant defines the lower limit for the value of the controlled parameter. The actual value varies randomly between the lower and upper limits.

Arguments

  • float min - Minimum constant value to be set for the modifier.

float getConstantMin ( ) #

Returns the current minimum constant value set for the modifier. This constant defines the lower limit for the value of the controlled parameter. The actual value varies randomly between the lower and upper limits.

Return value

Current minimum constant value for the modifier.

void setConstantMax ( float max ) #

Sets a new maximum constant value for the modifier. This constant defines the upper limit for the value of the controlled parameter. The actual value varies randomly between the lower and upper limits.

Arguments

  • float max - Maximum constant value to be set for the modifier.

float getConstantMax ( ) #

Returns the current maximum constant value set for the modifier. This constant defines the upper limit for the value of the controlled parameter. The actual value varies randomly between the lower and upper limits.

Return value

Current maximum constant value for the modifier.

void setCurve ( Curve2d curve ) #

Sets a new curve for the modifier. The actual value of the controlled parameter is defined by this curve.

Arguments

  • Curve2d curve - Curve to be set for the modifier.

Curve2d getCurve ( ) #

Returns the current curve set for the modifier. The actual value of the controlled parameter is defined by this curve.

Return value

Current curve set for the modifier.

void setCurveMin ( Curve2d min ) #

Sets a new minimum curve for the modifier. This curve defines the lower limit for the value of the controlled parameter at each point of the particle's lifetime. The actual value changes randomly over time between the lower and the upper limits.

Arguments

  • Curve2d min - Minimum curve to be set for the modifier.

Curve2d getCurveMin ( ) #

Returns the current minimum curve set for the modifier. This curve defines the lower limit for the value of the controlled parameter at each point of the particle's lifetime. The actual value changes randomly over time between the lower and the upper limits.

Return value

Current minimum curve set for the modifier.

void setCurveMax ( Curve2d max ) #

Sets a new maximum curve for the modifier. This curve defines the upper limit for the value of the controlled parameter at each point of the particle's lifetime. The actual value changes randomly over time between the lower and the upper limits.

Arguments

  • Curve2d max - Maximum curve to be set for the modifier.

Curve2d getCurveMax ( ) #

Returns the current maximum curve set for the modifier. This curve defines the upper limit for the value of the controlled parameter at each point of the particle's lifetime. The actual value changes randomly over time between the lower and the upper limits.

Return value

Current maximum curve set for the modifier.

float getMaxValue ( ) #

Returns the maximum value for the modifier defining the upper limit for the value of the controlled parameter.

Return value

Maximum value for the modifier.

float getMinValue ( ) #

Returns the minimum value for the modifier defining the lower limit for the value of the controlled parameter.

Return value

Minimum value for the modifier.
Last update: 2020-07-31
Build: ()