This page has been translated automatically.
Programming
Fundamentials
Setting Up Development Environment
UnigineScript
High-Level Systems
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine and Tools
GUI
Double Precision Coordinates
API
Core Library
Containers
Engine Classes
Node-Related Classes
Rendering-Related Classes
Physics-Related Classes
Bounds-Related Classes
GUI-Related Classes
Controls-Related Classes
Pathfinding-Related Classes
Utility Classes
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.

Upgrade Script

Unigine upgrade script is a one-touch solution to upgrade data of a Unigine-based project to be consistent with updated engine builds.

The script recursively scans project folders to upgrade the files located there. If the script fails to upgrade some files, it will generate an error log (errors.log file).

Usage

The script is located in utils/Upgrade directory of Unigine SDK.

Notice
You need to properly set the development environment to get the script working.

To invoke the upgrade script, run upgrade.py at the command prompt as follows:

Shell commands
upgrade.py OPTIONS

Command Line Options

The upgrade script recognizes the following command line options:

  • --help — show help message.
  • --target TARGET — target directory to be upgraded. The default is current directory.
  • --meshes MESHES — whether to run MeshImport tool or not. Possible values are: yes/no or 1/0. The default is 0.

If no options are set, the script will start upgrade with the default values.

Examples

  • To upgrade a Unigine-based project located in D:\my_project directory, type at the command prompt:
    Shell commands
    upgrade.py --target=D:\my_project
  • To upgrade a Unigine-based project, including its mesh files, run the upgrade script with the following options:
    Shell commands
    upgrade.py --target=D:\my_project --meshes yes
    The upgrade script calls the meshimport script, which recursively searches for *.mesh, *.smesh or *.sanim files in project folders and upgrades them.
Last update: 2017-07-03
Build: ()