Content Migration
You can upgrade content of your project to UNIGINE 2.12 in the automatic or manual mode.
Automatic Upgrade#
Automatic upgrade of the project's content can be performed via UNIGINE SDK Browser.
As a result, the binary executable and configuration files, meshes, terrains, worlds, nodes, splines, materials, properties, tracks, settings files will be upgraded to new formats (if any). The <unigine_project>/migration.log.html log file will be opened in the web browser. However, you can uncheck Migrate Content during automatic upgrading and perform content upgrading manually. In this case, only binary executable files will be upgraded.
Manual Upgrade#
This mode should be used to upgrade content stored outside the project's data folder (such as mount points):
To upgrade the project's content in the manual mode, do the following:
- Put the binary executable <UnigineSDK>/bin/usc_x64.exe to the <UnigineSDK>/utils/upgrade folder that contains the upgrade script.
Use usc_x64.exe from the SDK version you are migrating to.
- In the command prompt, run the upgrade.usc with the required options:
If you have unchecked Migrate Content during automatic upgrading, add the path to the project's data folder to the list of arguments passed to the upgrade script. For example:
usc_x64.exe upgrade.usc path/to/additional_content_1 path/to/additional_content_2 ...
Here:usc_x64.exe upgrade.usc <unigine_project>/data path/to/additional_content_1 path/to/additional_content_2 ...
- path/to/additional_content_* - paths to folders with content stored outside the data folder.
As soon as migration is completed, run the Editor to have the project assets "indexed".
Particle System Material#
Automatic migration covers most of the aspects for the particles_base material. However, in case the Emission parameter was enabled in the parent material but was not overridden in the child material - this parameter should be migrated manually as follows:
- Copy the Diffuse (Albedo) texture of the particles to the Emission texture field.
- Copy Diffuse (Albedo) Color value to the Emission Color field.
The Attenuation texture was removed, as now this functionality is controlled via Curves. Automatic migration is not possible in this case. So, you should manually adjust particles attenuation via the new Curve-controlled Albedo texture, which enables you to adjust color changes as well.
Configuration files#
All global engine-related and project-related settings previously stored in the unigine.cfg file in the bin folder of your project, are now stored in separate files inside the data/configs.
The content of the bin folder cannot be migrated. To perform migration you should move the abovementioned configuration file to the data folder.
Using old-style configuration files may result in various issues or even crash the Engine.