This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Professional (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Landscape Tool
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World Nodes
Звуковые объекты
Объекты поиска пути
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Materials and Shaders
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
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Сэмплы материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Resource

Resource is a tool for compiling binary resources (*.resource files, zipped and encoded to base64), which then will be embedded during compilation of the binary executable.

To invoke the Resource tool, run resource_* from a command-line (the x64 postfix) and specify all the required resources.

See Also#

Command Line Options#

The Resource tool recognizes the following command-line options:

  • -o NAME - name of the output file.

    Shell commands
    D:\UnigineSDK\bin>resource_x64 icon1.ico -o icon

    As a result, the icon file will be created.

Usage#

  • If you run the Resource tool without the -o option, the *.resource file named after the source file will be created. For example:

    Shell commands
    D:\UnigineSDK\bin>resource_x64 icon1.ico

    The icon1.resource file is created.

  • If you specify several resources to be compiled without the -o option, several *.resource files named after the source files will be created. For example:

    Shell commands
    D:\UnigineSDK\bin>resource_x64 icon1.ico splash.png

    Two files icon1.resource and splash.resource are created.

  • If you specify the -o option, all specified resources will be added to one file. For example:

    Shell commands
    D:\UnigineSDK\bin>resource_x64 icon1.ico splash.png -o images.resource
Notice
To load data from a *.resource file, use methods of the Resource class.

Encrypting Password#

To encrypt a password by using the Resource tool, perform the following:

  1. Create a text file named password that contains your password. For example, you can create such file via the command prompt:

    Shell commands
    D:\UnigineSDK\bin>echo MyPassword > password

    If the file already exists, its content will be overwritten with the given one (in this case, MyPassword).

  2. Run <UnigineSDK>/bin/resource_* (with the x64 postfix) for the password file. For example:

    Shell commands
    D:\UnigineSDK\bin>resource_x64 password

As a result, the password.resource file that contains the encrypted password will be created.

To rebuild the engine with the password, copy this file to <UnigineSDK>/source/engine directory. Note that the password should be the same as the one that is entered when creating a UNG archive.

Last update: 10.03.2022
Build: ()