|
|
|
|
|
|
{ |
|
|
|
public class SampleExporter |
|
|
|
{ |
|
|
|
const string k_OutputCommandLineFlag = "--mlagents-sample-ouput-path"; |
|
|
|
const string k_SceneFlag = "--mlagents-scene-path"; |
|
|
|
|
|
|
|
public static void ExportCuratedSamples() |
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
var args = Environment.GetCommandLineArgs(); |
|
|
|
var outputPath = "exported_samples"; |
|
|
|
if (args[i] == k_OutputCommandLineFlag) |
|
|
|
{ |
|
|
|
outputPath = args[i + 1]; |
|
|
|
Debug.Log($"Overriding output path to {outputPath}"); |
|
|
|
} |
|
|
|
if (args[i] == k_SceneFlag) |
|
|
|
{ |
|
|
|
scenes.Add(args[i + 1]); |
|
|
|