浏览代码

make zero default. update logic

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

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


public bool Record;
/// <summary>
/// Number of steps to record. Editor will stop playing when it hits this threshold.
/// Number of steps to record. If this number is higher than zero, the editor will stop
/// playing when it reaches this threshold.
[Tooltip("Number of steps to record. Editor will stop playing when it hits this threshold.")]
public int NumStepsToRecord = 5000;
[Tooltip("Number of steps to record. If this number is higher than zero, the editor will stop " +
"playing when it reaches this threshold.")]
public int NumStepsToRecord = 0;
/// <summary>
/// Base demonstration file name. If multiple files are saved, the additional filenames

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

正在加载...
取消
保存