This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
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.

UnigineScript Migration

Major changes:

engine.render Functions

UNIGINE 2.0UNIGINE 2.1
vec4 engine.render.getAmbientColor()Removed
vec4 engine.render.getBackgroundColor()Removed
void engine.render.getEnvironmentCoefficients(int ret[] = [])Removed
float engine.render.getEnvironmentExposure()Removed
string engine.render.getEnvironmentTextureName()Removed
int engine.render.getScattering()Removed
float engine.render.getScatteringAngularity()Removed
float engine.render.getScatteringAreal()Removed
float engine.render.getScatteringDensity()Removed
float engine.render.getScatteringDepolarization()Removed
vec3 engine.render.getScatteringDirection()Removed
float engine.render.getScatteringEnergy()Removed
float engine.render.getScatteringGreenstein()Removed
float engine.render.getScatteringGround()Removed
float engine.render.getScatteringInnerAngle()Removed
float engine.render.getScatteringMie()Removed
vec4 engine.render.getScatteringMieColor()Removed
float engine.render.getScatteringMieHeight()Removed
float engine.render.getScatteringOuterAngle()Removed
float engine.render.getScatteringPower()Removed
float engine.render.getScatteringRay()Removed
vec4 engine.render.getScatteringRayColor()Removed
float engine.render.getScatteringRayHeight()Removed
float engine.render.getScatteringRefractive()Removed
float engine.render.getScatteringSun()Removed
vec4 engine.render.getScatteringSunColor()Removed
float engine.render.getScatteringThreshold()Removed
float engine.render.getScatteringTurbidity()Removed
void engine.render.setAmbientColor(vec4 color)Removed
void engine.render.setBackgroundColor(vec4 color)Removed
void engine.render.setEnvironmentCoefficients(int arg[] = [])Removed
void engine.render.setEnvironmentExposure(float factor)Removed
int engine.render.setEnvironmentTextureName(string filename)Removed
void engine.render.setScatteringAngularity(float angularity)Removed
void engine.render.setScatteringAreal(float factor)Removed
void engine.render.setScatteringDensity(float density)Removed
void engine.render.setScatteringDepolarization(float factor)Removed
void engine.render.setScatteringDirection(vec3 direction)Removed
void engine.render.setScatteringEnergy(float energy)Removed
void engine.render.setScatteringGreenstein(float factor)Removed
void engine.render.setScatteringGround(float ground)Removed
void engine.render.setScatteringInnerAngle(float angle)Removed
void engine.render.setScatteringMieColor(vec4 vec4)Removed
void engine.render.setScatteringMieHeight(float radius)Removed
void engine.render.setScatteringMie(float factor)Removed
void engine.render.setScatteringOuterAngle(float angle)Removed
void engine.render.setScatteringPower(float power)Removed
void engine.render.setScatteringRayColor(vec4 color)Removed
void engine.render.setScatteringRayHeight(float radius)Removed
void engine.render.setScatteringRay(float factor)Removed
void engine.render.setScatteringRefractive(float index)Removed
void engine.render.setScatteringSunColor(vec4 color)Removed
void engine.render.setScatteringSun(float brightness)Removed
void engine.render.setScatteringThreshold(float threshold)Removed
void engine.render.setScatteringTurbidity(float turbidity)Removed

New Functions and Variables

We improved scattering and environment settings in the UNIGINE 2.1 release. And instead of the removed functions (mentioned above) we provide these new UnigineScript API functions and variables:

Xml Class

Material Class

UNIGINE 2.0UNIGINE 2.1
int getLightBlending() Removed
int getPostRefraction() Removed
int getPostScattering() Removed
void setLightBlending(int mode) Removed
void setPostRefraction(int enable) Removed
void setPostScattering(int enable) Removed

Node Class

New Functions and Variables

Player Class

LightWorld Class

ObjectMeshDynamic Class

Last update: 2017-07-03
Build: ()