This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Режимы вывода изображения
Физика
Браузер SDK 2
Лицензирование и типы лицензий
Дополнения (Add-Ons)
Демонстрационные проекты
API Samples
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
Унифицированный язык шейдеров UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Учебные материалы

API Migration

Breaking Changes#

New HashMap/HashSet#

To improve performance and reduce memory consumption we have made some refactoring and optimization regarding Hash Maps and Hash Sets for this release. They both now store data linearly similar to vectors, which requires some changes in your code is case you have used them.

The findFast() method now returns a pointer instead of a double pointer:

UNIGINE 2.19 UNIGINE 2.19.1
ValueType **Hash::findFast(const KeyType &key) const
Source code (C++)
Unigine::HashMap<int, int> hash_map;
//...
auto item = hash_map.findFast(0);
if(item)
   Unigine::Log::message("%d\n", (*item)->data);
ValueType *Hash::findFast(const KeyType &key) const
Source code (C++)
Unigine::HashMap<int, int> hash_map;
//...
auto item = hash_map.findFast(0);
if(item)
   Unigine::Log::message("%d\n", item->data);

The emplace() method now returns an Iterator instead of a value:

UNIGINE 2.19 UNIGINE 2.19.1
ValueType &Hash::emplace(const KeyType &key)
Source code (C++)
Unigine::HashMap<int, int> hash_map;
Unigine::Log::message("%d\n", hash_map.emplace(0));
Iterator Hash::emplace(const KeyType &key)
Source code (C++)
Unigine::HashMap<int, int> hash_map;
Unigine::Log::message("%d\n", hash_map.emplace(0)->data);

HashMap vs BucketHashMap#

We've also kept the previous hash map implementation for backward compatibility and some specific cases, it is called BucketHashMap. Here is one of such examples, where the BucketHashMap must be used instead of the new HashMap - pointers to a key/value:

UNIGINE 2.19.1 - HashMap UNIGINE 2.19.1 - BucketHashMap
Source code (C++)
int *find(const HashMap<int, int> &hash_map, int key) {
	const auto &it = hash_map.find(key);
	if(it == hash_map.end()) return nullptr;
	return &it->data; //<-potentials crashes, use BucketHashMap
}
Source code (C++)
int *find(const BucketHashMap<int, int> &hash_map, int key) {
	const auto &it = hash_map.find(key);
	if(it == hash_map.end()) return nullptr;
	return &it->data; //<-everything is ok!
}

AnimationPlayback Class#

UNIGINE 2.19 UNIGINE 2.19.1
Property Time Removed. Use the GetTime( ) method instead.

New Functions

New Properties

BootConfig Class#

CustomSystemProxy Class#

Decal Class#

Engine Class#

EngineWindowGroup Class#

New Properties

Input Class#

InputJoystick Class#

LightEnvironmentProbe Class#

LightOmni Class#

LightProj Class#

Log Class#

New Properties

Material Class#

Materials Class#

UNIGINE 2.19 UNIGINE 2.19.1
CompileShaders( ) Removed. Use CreateShaderCache( bool ) instead.

New Functions

New Properties

ObjectParticles Class#

UNIGINE 2.19 UNIGINE 2.19.1
Property LinearDamping Removed. Use LinearDampingOverTimeModifier( ) instead.

New Properties

Profiler Class#

Render Class#

UNIGINE 2.19 UNIGINE 2.19.1
Property QuadroSync Removed.
GetTemporaryTexture( Texture ) Removed. Use GetTemporaryTexture( Texture, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) instead.
GetTemporaryTexture( Texture, string ) Removed. Use GetTemporaryTexture( Texture, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) instead.
GetTemporaryTexture( Texture, string, int ) Removed. Use GetTemporaryTexture( Texture, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) instead.
GetTemporaryTexture( int, int, int, int, int, int, string ) Removed. Use GetTemporaryTexture( int, int, int, int, int, int, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) instead.
GetTemporaryTexture( int, int, int, int, int, int ) Removed. Use GetTemporaryTexture( int, int, int, int, int, int, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) instead.
GetTemporaryTexture( int, int, int, int, int, int, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) Set of arguments changed.
GetTemporaryTexture2D( int, int, int, int, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) Set of arguments changed.
GetTemporaryTexture2DArray( int, int, int, int, int, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) Set of arguments changed.
GetTemporaryTexture3D( int, int, int, int, int, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) Set of arguments changed.
GetTemporaryTextureCube( int, int, int, int, string, Render.TEXTURE_ACCESSORY, Render.TEXTURE_LIFETIME, bool ) Set of arguments changed.
GetTemporaryOldTexture( Material, int, int, int, int, int, int, int, string ) Removed. Use GetTemporaryOldTexture( Material, int, Texture, string, Render.TEXTURE_ACCESSORY ) instead.
GetTemporaryOldTexture( Material, int, int, int, int, int, int, int ) Removed. Use GetTemporaryOldTexture( Material, int, Texture, string, Render.TEXTURE_ACCESSORY ) instead.
GetTemporaryOldTexture( Material, int, Texture, string ) Removed. Use GetTemporaryOldTexture( Material, int, Texture, string, Render.TEXTURE_ACCESSORY ) instead.
GetTemporaryOldTexture( Material, int, Texture ) Removed. Use GetTemporaryOldTexture( Material, int, Texture, string, Render.TEXTURE_ACCESSORY ) instead.

New Properties

New Functions

WallGroupData Class#

New Properties

World Class#

Manager Class (IG)#

Entity Class (IG)#

New Properties

Last update: 13.12.2024
Build: ()