浏览代码

refactored arg parsing

/main
Steven Leal 4 年前
当前提交
a7f16c04
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs

4
com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs


#if !UNITY_EDITOR
var args = Environment.GetCommandLineArgs();
var filePath = string.Empty;
for (var i = 0; i < args.Length; i++)
for (var i = 0; i < args.Length - 1; i++)
if (args[i] == "--scenario-config-file" && args.Length > i + 1)
if (args[i] == "--scenario-config-file")
{
filePath = args[i + 1];
break;

正在加载...
取消
保存