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

Material Class

UNIGINEUNIGINE 2
int getCastTranslucent() Removed
int getDownsize() Removed
int getGlowMask() Removed
int getGroup() Removed
int getNumChilds() int getNumChildren()
See remarks below
int getOcclusionMask() Removed
int getParallaxMask() Removed
int getParameterColorSRGB(int num) Removed
int getPostDeferred() Removed
int getReceiveShadow() Removed
int getReceiveTranslucent() Removed
int getReceiveWorldShadow() Removed
int isReflectionCube() Removed
int isOpacity() Removed
int isTransparent() int getTransparent()
See remarks below
int getTransparent() int getTransparent()
See remarks below
void setTransparent(int transparent) void setTransparent(int transparent)
See remarks below.
void setCastTranslucent(int mode) Removed
void setDownsize(int downsize) Removed
void setGlowMask(int mode) Removed
void setPostDeferred(int enable) Removed
void setGroup(int group) Removed
void setOcclusionMask(int mode) Removed
void setParallaxMask(int mode) Removed
int setPostDeferred(int mode) Removed
void setReceiveShadow(int mode) Removed
void setReceiveTranslucent(int mode) Removed
void setReceiveWorldShadow(int mode) Removed
MATERIAL_TEXTURE_DEFERRED_PARALLAX
MATERIAL_TEXTURE_DEFERRED_COLOR
Removed
MATERIAL_TEXTURE_LIGHT_COLORRemoved
MATERIAL_TEXTURE_REFLECTION_CUBE
MATERIAL_TEXTURE_REFLECTION_2D
Removed
MATERIAL_TEXTURE_DOWNSIZERemoved
MATERIAL_DOWNSIZE_NONE
MATERIAL_DOWNSIZE_ALWAYS_SCALE
MATERIAL_DOWNSIZE_ALWAYS_FILTER
MATERIAL_DOWNSIZE_GREATER_SCALE
MATERIAL_DOWNSIZE_GREATER_FILTER
MATERIAL_DOWNSIZE_FORWARD_SCALE
MATERIAL_DOWNSIZE_FORWARD_FILTER
Removed

Remarks:

  1. The isTransparent() function renamed to int getTransparent() class.
  2. Now the int getTransparent() function returns 0, 1 or 2:
  3. Now the void setTransparent(int transparent) function arguments could be the following:
  4. The int getNumChilds() function is depricated. It is provided to keep your code working until the next release. Please, replace it with int getNumChildren().

New Functions and Variables

Last update: 2017-07-03