This page has been translated automatically.
编程
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

UNIGINE 2.5 UNIGINE 2.6
initD3D11_void_void_void_int_int() Set of arguments changed.
initGL() Set of arguments changed.

New Functions

ControlsApp Class

New Functions

Decal Class

Dir Class

New Functions

EditorLogic Class

Ellipsoid Class

UNIGINE 2.5 UNIGINE 2.6
toGeodetic() Added need_alt argument.

Engine Class

UNIGINE 2.5 UNIGINE 2.6
initD3D11() Set of arguments changed.
initGL() Set of arguments changed.

New Functions

FieldHeight Class

UNIGINE 2.5 UNIGINE 2.6
setImageTexture() Removed. Use setTexture() instead.
getImageTexture() Removed. Use getTexture() instead.
setImageTextureImage() Removed. Use setTextureImage() instead.
getImageTextureImage() Removed. Use getTextureImage() instead.
setImageTextureName() Removed. Use setTexturePath() instead.
getImageTextureName() Removed. Use getTexturePath() instead.

New Functions

FieldShoreline Class

UNIGINE 2.5 UNIGINE 2.6
setImageTexture() Removed. Use setTexture() instead.
getImageTexture() Removed. Use getTexture() instead.
setImageTextureImage() Removed. Use setTextureImage() instead.
getImageTextureImage() Removed. Use getTextureImage() instead.
setImageTextureName() Removed. Use setTexturePath() instead.
getImageTextureName() Removed. Use getTexturePath() instead.

New Functions

FieldWeather Class

UNIGINE 2.5 UNIGINE 2.6
setImageTexture() Removed. Use setTexture() instead.
getImageTexture() Removed. Use getTexture() instead.
setImageTextureImage() Removed. Use setTextureImage() instead.
getImageTextureImage() Removed. Use getTextureImage() instead.
setImageTextureName() Removed. Use setTexturePath() instead.
getImageTextureName() Removed. Use getTexturePath() instead.

New Functions

Filesystem Class

UNIGINE 2.5 UNIGINE 2.6
getImage() Removed. Use AsyncQueue::getImage() instead.
isFile() Set of arguments changed.
getFileName() Set of arguments changed.
addKnownFile() Set of arguments changed.
isKnownFile() Set of arguments changed.
isPackageFile() Set of arguments changed.
getMesh() Removed. Use AsyncQueue::getMesh() instead.
setMTime() Set of arguments changed.
getMTime() Set of arguments changed.
getNumQueuedData() Removed.
getNumQueuedFiles() Removed. Use AsyncQueue::getNumQueuedFiles() instead.
getNumQueuedImages() Removed. Use AsyncQueue::getNumQueuedImages() instead.
getNumQueuedMeshes() Removed. Use AsyncQueue::getNumQueuedMeshes() instead.
getNumQueuedResources() Removed. Use AsyncQueue::getNumQueuedResources() instead.
getTotalTime() Removed. Use AsyncQueue::getTotalTime() instead.
checkFile() Removed. Use AsyncQueue::checkFile() instead.
checkImage() Removed. Use AsyncQueue::checkImage() instead.
checkMesh() Removed. Use AsyncQueue::checkMesh() instead.
forceFile() Removed. Use AsyncQueue::forceFile() instead.
forceImage() Removed. Use AsyncQueue::forceImage() instead.
forceMesh() Removed. Use AsyncQueue::forceMesh() instead.
loadFile() Removed. Use AsyncQueue::loadFile() instead.
loadImage() Removed. Use AsyncQueue::loadImage() instead.
loadMesh() Removed. Use AsyncQueue::loadMesh() instead.
removeFile() Removed. Use AsyncQueue::removeFile() instead.
removeImage() Removed. Use AsyncQueue::removeImage() instead.
removeMesh() Removed. Use AsyncQueue::removeMesh() instead.
validateFile() Removed. Use isCacheFile() instead.
getPackageFileName() Set of arguments changed.

New Functions

GeodeticPivot Class

Image Class

UNIGINE 2.5 UNIGINE 2.6
set2DSmooth() Removed.
get2DSmooth() Removed.
set3DSmooth() Removed.

New Functions

LightEnvironmentProbe Class

UNIGINE 2.5 UNIGINE 2.6
setImageTexture() Removed. Use setTexture() instead.
getImageTexture() Removed. Use getTexture() instead.
setImageTextureImage() Removed. Use setTextureImage() instead.
getImageTextureImage() Removed. Use getTextureImage() instead.
setImageTextureName() Removed. Use setTexturePath() instead.
getImageTextureName() Removed. Use getTexturePath() instead.

New Functions

LightOmni Class

UNIGINE 2.5 UNIGINE 2.6
setImageTexture() Removed. Use setTexture() instead.
getImageTexture() Removed. Use getTexture() instead.
setImageTextureImage() Removed. Use setTextureImage() instead.
getImageTextureImage() Removed. Use getTextureImage() instead.
setImageTextureName() Removed. Use setTexturePath() instead.
getImageTextureName() Removed. Use getTexturePath() instead.

New Functions

LightProj Class

UNIGINE 2.5 UNIGINE 2.6
setImageTexture() Removed. Use setTexture() instead.
getImageTexture() Removed. Use getTexture() instead.
setImageTextureImage() Removed. Use setTextureImage() instead.
getImageTextureImage() Removed. Use getTextureImage() instead.
setImageTextureName() Removed. Use setTexturePath() instead.
getImageTextureName() Removed. Use getTexturePath() instead.

New Functions

Material Class

UNIGINE 2.5 UNIGINE 2.6
setImageTexture() Removed. Use setTexture() instead.
getImageTexture() Removed. Use getTexture() instead.
setImageTextureFlags() Removed. Use setTextureFlags() instead.
getImageTextureFlags() Removed. Use getTextureFlags() instead.
setImageTextureImage() Removed. Use setTextureImage() instead.
getImageTextureImage() Removed. Use getTextureImage() instead.
setImageTextureName() Removed. Use setTexturePath() instead.
getImageTextureName() Removed. Use getTexturePath() instead.
getCompare() Removed.
getParameterSliderLog10() Removed.
loadWorld() Removed.
saveWorld() Removed.

New Functions

Materials Class

UNIGINE 2.5 UNIGINE 2.6
isLibrary() Removed.
isLibraryEditable() Removed.
getNumLibraries() Removed.
getNumWorldLibraries() Removed.
getLibraryName() Removed.
getWorldLibraryName() Removed.
addWorldLibrary() Removed.
findLibrary() Removed.
findLibraryMaterial() Removed.
findMaterialLibrary() Removed.
getNumMaterials() Set of arguments changed.
getMaterial() Set of arguments changed.
getMaterialName() Set of arguments changed.
cloneMaterial() Removed.
inheritMaterial() Removed.
moveMaterial() Removed.
removeMaterial() Set of arguments changed.
replaceMaterial() Removed.
clear() Removed.
create() Removed.
load() Removed.
reload() Removed.
save() Removed.
removeWorldLibrary() Removed.

New Functions

Node Class

UNIGINE 2.5 UNIGINE 2.6
canApplyToPrefab() Removed.
canAddChild() Removed.
getLinkedHierarchy() Removed.
getLinkedRoot() Removed.
isPrefabInstance() Removed.
isPrefabInstanceChanged() Removed.
isPrefabMissing() Removed.
setPrefabName() Removed.
getPrefabName() Removed.
getPrefabPropertyNames() Removed.
isPrefabPropertyOverridden() Removed.
freezePrefabLink() Removed.
hasOverridenPrefabProperties() Removed.
hasPrefabLink() Removed.
hasPrefabName() Removed.
revertPrefabProperty() Removed.

New Functions

NodeReference Class

New Functions

Object Class

UNIGINE 2.5 UNIGINE 2.6
getSurfacePrefabPropertyNames() Removed.
isSurfacePrefabPropertyOverridden() Removed.
revertSurfacePrefabProperty() Removed.

New Functions

ObjectDynamic Class

ObjectExtern Class

ObjectGui Class

ObjectGuiMesh Class

ObjectMeshStatic Class

New Functions

ObjectTerrainGlobal Class

UNIGINE 2.5 UNIGINE 2.6
setAlbedoLodClearDistance() Removed.
getAlbedoLodClearDistance() Removed.
setAlbedoLodEnabled() Removed.
getAlbedoLodEnabled() Removed.
setAlbedoLodLoadDistance() Removed.
getAlbedoLodLoadDistance() Removed.
setAlbedoLodPath() Removed.
getAlbedoLodPath() Removed.
setAlbedoLodTileDensity() Removed.
getAlbedoLodTileDensity() Removed.
getAlbedoLodTileset() Removed.
setAlbedoLodViewportMask() Removed.
getAlbedoLodViewportMask() Removed.
setAlbedoLodVisibleDistance() Removed.
getAlbedoLodVisibleDistance() Removed.
getAlbedoNumLods() Removed.
getAlbedoVideoMemoryUsage() Removed.
setHeightLodClearDistance() Removed.
getHeightLodClearDistance() Removed.
setHeightLodCollision() Removed.
getHeightLodCollision() Removed.
setHeightLodCollisionMask() Removed.
getHeightLodCollisionMask() Removed.
setHeightLodEnabled() Removed.
getHeightLodEnabled() Removed.
setHeightLodIntersection() Removed.
getHeightLodIntersection() Removed.
setHeightLodIntersectionMask() Removed.
getHeightLodIntersectionMask() Removed.
setHeightLodLoadDistance() Removed.
getHeightLodLoadDistance() Removed.
setHeightLodPath() Removed.
getHeightLodPath() Removed.
setHeightLodTileDensity() Removed.
getHeightLodTileDensity() Removed.
getHeightLodTileset() Removed.
setHeightLodViewportMask() Removed.
getHeightLodViewportMask() Removed.
setHeightLodVisibleDistance() Removed.
getHeightLodVisibleDistance() Removed.
getHeightNumLods() Removed.
getHeightVideoMemoryUsage() Removed.
setNormalLodClearDistance() Removed.
getNormalLodClearDistance() Removed.
setNormalLodEnabled() Removed.
getNormalLodEnabled() Removed.
setNormalLodLoadDistance() Removed.
getNormalLodLoadDistance() Removed.
setNormalLodPath() Removed.
getNormalLodPath() Removed.
setNormalLodTileDensity() Removed.
getNormalLodTileDensity() Removed.
getNormalLodTileset() Removed.
setNormalLodViewportMask() Removed.
getNormalLodViewportMask() Removed.
setNormalLodVisibleDistance() Removed.
getNormalLodVisibleDistance() Removed.
getNormalNumLods() Removed.
getNormalVideoMemoryUsage() Removed.
addAlbedoLod() Removed.
addHeightLod() Removed.
addNormalLod() Removed.
fetchAlbedoes() Removed.
fetchHeights() Removed.
fetchNormals() Removed.
removeAlbedoLod() Removed.
removeHeightLod() Removed.
removeNormalLod() Removed.

New Functions

Property Class

New Functions

Properties Class

New Functions

Render Class

UNIGINE 2.5 UNIGINE 2.6
setEnvironmentAmbientIntensity() Removed. Use setAmbientIntensity() instead.
getEnvironmentAmbientIntensity() Use:
setEnvironmentHazeColor() Removed. Use setHazeColor() instead.
getEnvironmentHazeColor() Use:
setEnvironmentHazeDensity() Removed. Use setHazeDensity() instead.
getEnvironmentHazeDensity() Use:
setEnvironmentHazeMaxDistance() Removed. Use setHazeMaxDistance() instead.
getEnvironmentHazeMaxDistance() Use:
setEnvironmentPresetIntensity() Removed. Use setIntensity() instead.
getEnvironmentPresetIntensity() Removed. Use getIntensity() instead.
setEnvironmentReflectionIntensity() Removed. Use setReflectionIntensity() instead.
getEnvironmentReflectionIntensity() Use:
setEnvironmentScatteringBaseLUTName() Removed. Use setScatteringBaseLUTName() instead.
getEnvironmentScatteringBaseLUTName() Removed. Use getScatteringBaseLUTName() instead.
setEnvironmentScatteringGroundColor() Removed. Use setScatteringGroundColor() instead.
getEnvironmentScatteringGroundColor() Removed. Use getScatteringGroundColor() instead.
setEnvironmentScatteringGroundLUTName() Removed. Use setScatteringGroundLUTName() instead.
getEnvironmentScatteringGroundLUTName() Removed. Use getScatteringGroundLUTName() instead.
setEnvironmentScatteringLightColorLUTName() Removed. Use setScatteringLightColorLUTName() instead.
getEnvironmentScatteringLightColorLUTName() Removed. Use getScatteringLightColorLUTName() instead.
setEnvironmentScatteringMieLUTName() Removed. Use setScatteringMieLUTName() instead.
getEnvironmentScatteringMieLUTName() Removed. Use getScatteringMieLUTName() instead.
setEnvironmentSkyIntensity() Removed. Use setSkyIntensity() instead.
getEnvironmentSkyIntensity() Use:
setEnvironmentTextureColor() Removed. Use setTextureColor() instead.
getEnvironmentTextureColor() Removed. Use getTextureColor() instead.
setEnvironmentTextureName() Removed. Use setTextureName() instead.
getEnvironmentTextureName() Removed. Use getTextureName() instead.

New Functions

Texture Class

Variable Class

Viewport Class

New Functions

WidgetManipulator Class

World Class

Notice
Please be aware that the list of arguments for saveNode() and saveNodes() functions has changed the following way:
  • saveNode(name, node, save_materials, binary) -> saveNode(name, node, binary)
  • saveNodes(name, node, save_materials, binary) -> saveNodes(name, node, binary)

When calling these methods, you can set the binary flag to 1 by mistake, as a result you node(s) will be saved to a binary *.xml file, that cannot be read.

UNIGINE 2.5 UNIGINE 2.6
getAsyncNode() Removed. Use AsyncQueue::getNode() instead.
getAsyncNodes() Removed. Use AsyncQueue::getNodes() instead.
getNumQueuedNodes() Removed. Use AsyncQueue::getNumQueuedNodes() instead.
getNumQueuedResources() Removed. Use AsyncQueue::getNumQueuedResources() instead.
getTotalTime() Removed. Use AsyncQueue::getTotalTime() instead.
checkAsyncNode() Removed. Use AsyncQueue::checkNode() instead.
forceAsyncNode() Removed. Use AsyncQueue::forceNode() instead.
loadAsyncNode() Removed. Use AsyncQueue::loadNode() instead.
removeAsyncNode() Removed. Use AsyncQueue::removeNode() instead.
loadNode() Set of arguments changed.
saveNode() Set of arguments changed.
saveNodes() Set of arguments changed.
loadPrefab() Removed.
savePrefab() Removed.

New Functions

WorldSplineGraph Class

UNIGINE 2.5 UNIGINE 2.6
getNumPrefabNodes() Removed. Use getNumSourceNodes() instead.
addPrefabNode() Removed. Use addSourceNode() instead.
removePrefabNode() Removed. Use removeSourceNode() instead.
assignSegmentPrefab() Removed. Use assignSegmentSource() instead.
clearSegmentPrefab() Removed. Use clearSegmentSource() instead.
setPrefabForwardAxis() Removed. Use setSourceForwardAxis() instead.
getPrefabForwardAxis() Removed. Use getSourceForwardAxis() instead.
getPrefabNodeName() Removed. Use getSourceNodeName() instead.
getSegmentPrefabIndex() Removed. Use getSegmentSourceIndex() instead.
getSegmentNodes() Set of arguments changed.
setMaxVisibleDistance() Removed.
getMaxVisibleDistance() Removed.
setMinVisibleDistance() Removed.
getMinVisibleDistance() Removed.

New Functions

Last update: 2017-10-20
Build: ()