API endpoint

To export models, you can use the Unity Reflect C++ API version 3.0. Leverage the Config.h file of the API to use configuration files as .json files instead of using CommonUI. This example shows how you can use configuration files:


PublisherSettings settings;

String absolutePath;


bool success = Config::FromFile(settings, absolutePath);

if (success)

{

    // …

}


Build the config.json file

To generate a configuration file, use the Unity Reflect Publisher API. From the API public repository, use the ConfigFileCreator project, which consists of a small executable program. Follow these steps:


  1. Build the ConfigFileCreator project.
  2. Run the program. In the command, include the path to the generated file, for example:
    ConfigFileCreator.exe cloud.config
    CommonUI is displayed.
  3. Proceed as for exporting files to a target Unity project with a synchronization server.
  4. The program writes the chosen target and the authorization token in a generated .json file, instead of sending data to the target.


NOTE        The generated configuration file contains an ID token (idToken) that has an expiration date. You must regenerate the file every 25 to 30 days.

Additional resources

Public repository of the C# API