This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
Usage Examples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Migration
Migrating to UNIGINE 2.0
C++ API Migration
Migrating from UNIGINE 2.0 to UNIGINE 2.1
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

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 x86 or x64 postfix) and specify all the required resources.

See Also

Command Line Options

The Resource tool recognizes the following command-line options:

  • -o NAME - a name of the output file.
    Shell commands
    D:\UnigineSDK\bin>resource_x64 icon1.ico -o icon
    As the 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
    2 files icon1.resource and splash.resource are created.
  • If you specify the -o option, all the specified resources will be added to 1 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 Unigine::Resource class.
Last update: 2017-07-03
Build: ()