This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Полезные советы
Программирование на C#
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров узла
Setting Up Materials
Setting Up Properties
Освещение
Landscape Tool
Sandworm (Experimental)
Использование инструментов редактора для конкретных задач
Extending Editor Functionality
Встроенные объекты
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
UnigineScript
C++
C#
Унифицированный язык шейдеров UUSL
File Formats
Rebuilding the Engine Tools
GUI
Двойная точность координат
API
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
Работа с контентом
Оптимизация контента
Материалы
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Защита ваших данных паролем

In order to protect your source code and content, you are recommended to use the Archiver tool to archive your resources into UNG archives. It implements data encrypting to avoid unauthorized access and provides a password protection. Чтобы защитить исходный код и контент, рекомендуется использовать инструмент Archiver для архивирования ваших ресурсов в архивы UNG. Он реализует шифрование данных, чтобы избежать несанкционированного доступа, и обеспечивает защиту паролем.

Примечание
Protected packages are entirely loaded into memory, no data streaming is available for them. Защищенные пакеты полностью загружаются в память, для них нет потоковой передачи данных.

To protect resources, you need to create an archive with the password specified and pass the same password on engine initialization. The workflow is as follows: Для защиты ресурсов вам необходимо создать архив с указанным паролем и передать тот же пароль при инициализации движка. Рабочий процесс выглядит следующим образом:

  • Create an UNG archive with the specified password. For example, to create an archive named files.ung with the 12345 password that contains the textures directory, pass the following CLI:
    Shell-команды
    ung_x86 -o files.ung -d textures -p 12345
    Создайте архив UNG с указанным паролем. Например, чтобы создать архив с именем files.ung с паролем 12345 , который содержит каталог textures, передайте следующий интерфейс командной строки:
    Shell-команды
    ung_x86 -o files.ung -d textures -p 12345
  • Specify the same password to be passed on engine initialization in the <your_project_name>.cpp file:
    Исходный код (C++)
    #include <UnigineEngine.h>
    
    #include "AppSystemLogic.h"
    #include "AppWorldLogic.h"
    #include "AppEditorLogic.h"
    
    #ifdef _WIN32
    	int wmain(int argc,wchar_t *argv[]) {
    #else
    	int main(int argc,char *argv[]) {
    #endif
    	
    	Unigine::EnginePtr engine(UNIGINE_VERSION,argc,argv, "<your_project_name>", "12345");
    	
    	AppSystemLogic system_logic;
    	AppWorldLogic world_logic;
    	AppEditorLogic editor_logic;
    	
    	engine->main(&system_logic,&world_logic,&editor_logic);
    	
    	return 0;
    }
    Примечание
    If you pass a project name during engine initialization, this means the engine will store its rewritable data (such as logs, cache and configuration files) in user profile (in C:\Users\<username> on Windows or in /home/<username> on Linux) rather than <UnigineSDK/bin/ or <UnigineSDK/data/ folders. If you pass a project name during engine initialization, this means the engine will store its rewritable data (such as logs, cache and configuration files) in user profile (in C:\Users\<username> on Windows or in /home/<username> on Linux) rather than <UnigineSDK/bin/ or <UnigineSDK/data/ folders.
    On engine initialization, you can pass NULL as the 4th argument if you don't need that data is stored in user profile:
    Исходный код (UnigineScript)
    // engine initialization
    	Unigine::EnginePtr engine(UNIGINE_VERSION,argc,argv,NULL,"12345");
    If you pass a project name during engine initialization, this means the engine will store its rewritable data (such as logs, cache and configuration files) in user profile (in C:\Users\<username> on Windows or in /home/<username> on Linux) rather than <UnigineSDK/bin/ or <UnigineSDK/data/ folders.
    Укажите тот же пароль, который будет передаваться при инициализации движка в файле <your_project_name>.cpp:
    Исходный код (C++)
    #include <UnigineEngine.h>
    
    #include "AppSystemLogic.h"
    #include "AppWorldLogic.h"
    #include "AppEditorLogic.h"
    
    #ifdef _WIN32
    	int wmain(int argc,wchar_t *argv[]) {
    #else
    	int main(int argc,char *argv[]) {
    #endif
    	
    	Unigine::EnginePtr engine(UNIGINE_VERSION,argc,argv, "<your_project_name>", "12345");
    	
    	AppSystemLogic system_logic;
    	AppWorldLogic world_logic;
    	AppEditorLogic editor_logic;
    	
    	engine->main(&system_logic,&world_logic,&editor_logic);
    	
    	return 0;
    }
    Примечание
    If you pass a project name during engine initialization, this means the engine will store its rewritable data (such as logs, cache and configuration files) in user profile (in C:\Users\<username> on Windows or in /home/<username> on Linux) rather than <UnigineSDK/bin/ or <UnigineSDK/data/ folders. Если вы передадите имя проекта во время инициализации движка, это означает, что движок сохранит свои перезаписываемые данные (такие как журналы, кеш и файлы конфигурации) в профиле пользователя ( в C:\Users\<username> в Windows или в /home/<username> в Linux), а не в папках <UnigineSDK/bin/ или <UnigineSDK/data/.
    При инициализации движка вы можете передать NULL в качестве 4-го аргумента, если он вам не нужен данные хранятся в профиле пользователя:
    Исходный код (UnigineScript)
    // engine initialization
    	Unigine::EnginePtr engine(UNIGINE_VERSION,argc,argv,NULL,"12345");
Последнее обновление: 24.11.2020
Build: ()