This page has been translated automatically.
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Landscape Tool
Using Editor Tools for Specific Tasks
FAQ
编程
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
应用程序接口
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
CIGI Client Plugin
Rendering-Related Classes
注意! 这个版本的文档是过时的,因为它描述了一个较老的SDK版本!请切换到最新SDK版本的文档。
注意! 这个版本的文档描述了一个不再受支持的旧SDK版本!请升级到最新的SDK版本。

API Migration

Major Changes

App Class

Console Class

Dataset Class

dmat4 Class

UNIGINE 2.7 UNIGINE 2.7.1
getBack() Removed. To get the same behaviour, use the getAxisY() method.
getForward() Removed. To get the same behaviour, use the -getAxisY() method.
getUp() Removed. To get the same behaviour, use the getAxisZ() method.
getDown() Removed. To get the same behaviour, use the -getAxisZ() method.
getLeft() Removed. To get the same behaviour, use the getAxisX() method.
getRight() Removed. To get the same behaviour, use the -getAxisX() method.

New Functions

EditorLogic Class

Image Class

Light Class

UNIGINE 2.7 UNIGINE 2.7.1
setFlareEnabled() Renamed. Use setLensFlaresEnabled() instead.
isFlareEnabled() Renamed. Use isLensFlaresEnabled() instead.
allocateFlareBillboards() Renamed. Use allocateLensFlares() instead.
addFlareBillboard() Renamed. Use addLensFlare() instead.
cloneFlareBillboard() Renamed. Use cloneLensFlare() instead.
getFlareBillboard() Renamed. Use getLensFlare() instead.
removeFlareBillboard() Renamed. Use removeLensFlare() instead.
clearFlareBillboards() Renamed. Use clearLensFlares() instead.
getNumFlareBillboards() Renamed. Use getNumLensFlares() instead.
setFlareUseLightColor() Renamed. Use setLensFlaresUseLightColor() instead.
isFlareUseLightColor() Renamed. Use isLensFlaresUseLightColor() instead.
setFlareOcclusionFade() Renamed. Use setLensFlaresOcclusionFade() instead.
getFlareOcclusionFade() Renamed. Use getLensFlaresOcclusionFade() instead.
setFlareOcclusionFadeBorder() Renamed. Use setLensFlaresOcclusionFadeBorder() instead.
getFlareOcclusionFadeBorder() Renamed. Use getLensFlaresOcclusionFadeBorder() instead.
setFlareWorldPositionOffset() Renamed. Use setLensFlaresWorldPositionOffset() instead.
getFlareWorldPositionOffset() Renamed. Use getLensFlaresWorldPositionOffset() instead.
setFlareTextureName() Renamed. Use setLensFlaresTextureName() instead.
getFlareTextureName() Renamed. Use getLensFlaresTextureName() instead.

LightVoxelProbe Class

mat3 Class

UNIGINE 2.7 UNIGINE 2.7.1
getBack() Removed. To get the same behaviour, use the getAxisY() method.
getForward() Removed. To get the same behaviour, use the -getAxisY() method.
getUp() Removed. To get the same behaviour, use the getAxisZ() method.
getDown() Removed. To get the same behaviour, use the -getAxisZ() method.
getLeft() Removed. To get the same behaviour, use the getAxisX() method.
getRight() Removed. To get the same behaviour, use the -getAxisX() method.

New Functions

mat4 Class

UNIGINE 2.7 UNIGINE 2.7.1
getBack() Removed. To get the same behaviour, use the getAxisY() method.
getForward() Removed. To get the same behaviour, use the -getAxisY() method.
getUp() Removed. To get the same behaviour, use the getAxisZ() method.
getDown() Removed. To get the same behaviour, use the -getAxisZ() method.
getLeft() Removed. To get the same behaviour, use the getAxisX() method.
getRight() Removed. To get the same behaviour, use the -getAxisX() method.

New Functions

Material Class

UNIGINE 2.7 UNIGINE 2.7.1
checkShader() Return value type changed.
checkShader() Return value type changed.

New Functions

Materials Class

Node Class

UNIGINE 2.7 UNIGINE 2.7.1
getWorldForward() Removed. To get the same behaviour, use the following:
Source code (C++)
Mat4 t = node->getWorldTransform();
vec3(node->isPlayer() ? -t.getAxisZ() : -t.getAxisY());
Or the following:
Source code (C++)
node->getWorldDirection(node->isPlayer() ? Node::AXIS_NZ : Node::AXIS_NY);
getWorldLeft() Removed. To get the same behaviour, use the following:
Source code (C++)
Mat4 t = node->getWorldTransform();
vec3(node->isPlayer() ?  -t.getAxisX() :  t.getAxisX());
Or the following:
Source code (C++)
node->getWorldDirection(node->isPlayer() ? Node::AXIS_NX : Node::AXIS_X);
getWorldRight() Removed. To get the same behaviour, use the following:
Source code (C++)
Mat4 t = node->getWorldTransform();
vec3(node->isPlayer() ?  t.getAxisX() : -t.getAxisX());
Or the following:
Source code (C++)
node->getWorldDirection(node->isPlayer() ? Node::AXIS_X : Node::AXIS_NX);
getWorldUp() Removed. To get the same behaviour, use the following:
Source code (C++)
Mat4 t = node->getWorldTransform();
vec3(node->isPlayer() ?  t.getAxisY() :  t.getAxisZ());
Or the following:
Source code (C++)
node->getWorldDirection(node->isPlayer() ? Node::AXIS_Y : Node::AXIS_Z);
getWorldDown() Removed. To get the same behaviour, use the following:
Source code (C++)
Mat4 t = node->getWorldTransform();
vec3(node->isPlayer() ? -t.getAxisY() : -t.getAxisZ());
Or the following:
Source code (C++)
node->getWorldDirection(node->isPlayer() ? Node::AXIS_NY : Node::AXIS_NZ);
getWorldBack() Removed. To get the same behaviour, use the following:
Source code (C++)
Mat4 t = node->getWorldTransform();
vec3(node->isPlayer() ?  t.getAxisZ() :  t.getAxisY());
Or the following:
Source code (C++)
node->getWorldDirection(node->isPlayer() ? Node::AXIS_Z : Node::AXIS_Y);
translate() Changed the logic. To get the previous behaviour, do the following:
Source code (C++)
node->setPosition(t + node->getPosition());
rotate() Changed the logic. To get the previous behaviour, do the following:
Source code (C++)
node->setRotation(r * node->getRotation());
scale() Changed the logic. To get the previous behaviour, do the following:
Source code (C++)
node->setScale(s + node->getScale());
worldTranslate() Changed the logic. To get the previous behaviour, do the following:
Source code (C++)
node->setWorldTranslate(t + node->getWorldTranslate());
worldRotate() Changed the logic. To get the previous behaviour, do the following:
Source code (C++)
node->setWorldRotation(r * node->getWorldRotation());
worldScale() Changed the logic. To get the previous behaviour, do the following:
Source code (C++)
node->setWorldScale(s + node->getWorldScale());
worldLookAt(), worldLookAt() Changed the logic.
setDirection() Set of arguments changed.
getDirection() Set of arguments changed.
setWorldDirection() Set of arguments changed.
getWorldDirection() Set of arguments changed.

New Functions and Variables

Render Class

UNIGINE 2.7 UNIGINE 2.7.1
setGBufferAO() Removed.
isGBufferAO() Removed.
setGBufferLightmap() Removed.
isGBufferLightmap() Removed.
setGBufferMaterial_mask() Removed.
isGBufferMaterial_mask() Removed.
setGBufferMicrofiber() Removed.
isGBufferMicrofiber() Removed.
setGBufferSpecular() Removed.
isGBufferSpecular() Removed.
setGBufferTranslucent() Removed.
isGBufferTranslucent() Removed.
setGBufferVelocity() Removed.
isGBufferVelocity() Removed.
setMaxFieldAnimations() Removed.
setMaxFieldHeights() Removed.
setMaxFieldShorelines() Removed.
setMaxFieldSpacers() Removed.
setParallax() Removed.
isParallax() Removed.
setReflectionColor() Removed.
getReflectionColor() Removed.
setShadersQuality() Removed.
getShadersQuality() Removed.
setWaterFragmentDiscard() Removed.
isWaterFragmentDiscard() Removed.
setGBufferFeatures() Removed.
isGBufferFeatures() Removed.

New Functions

Renderer Class

UNIGINE 2.7 UNIGINE 2.7.1
getTextureGBufferGeodeticFlatPosition() Removed. Use getTextureTerrainFlatPosition() instead.

New Functions

Shape Class

String Class

New Functions

Viewport Class

UNIGINE 2.7 UNIGINE 2.7.1
All CALLBACK_* variables. Removed. Use Render::CALLBACK_* variables instead.

New Functions

Visualizer Class

WorldSplineGraph Class

UNIGINE 2.7 UNIGINE 2.7.1
assignSegmentSource() Set of arguments changed.

New Functions

Last update: 2018-06-04
Build: ()