浏览代码

add changes based on PR suggestions

/hh-develop-max-steps-demo-recorder
HH 4 年前
当前提交
20ab85e2
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 8
      com.unity.ml-agents/Runtime/Demonstrations/DemonstrationRecorder.cs

8
com.unity.ml-agents/Runtime/Demonstrations/DemonstrationRecorder.cs


/// <summary>
/// Number of steps to record. Editor will stop playing when it hits this threshold.
/// </summary>
public int numStepsToRecord = 5000;
[Tooltip("Number of steps to record. Editor will stop playing when it hits this threshold.")]
public int NumStepsToRecord = 5000;
/// <summary>
/// Base demonstration file name. If multiple files are saved, the additional filenames

LazyInitialize();
}
if (m_DemoWriter.NumSteps >= numStepsToRecord)
if (m_DemoWriter.NumSteps > 0 && m_DemoWriter.NumSteps >= NumStepsToRecord)
Application.Quit(0);
#if UNITY_EDITOR
#endif
}
}

正在加载...
取消
保存