浏览代码

editor start from frame 2

/0.9.0.preview.1_staging
RuiyuZ 3 年前
当前提交
91761cef
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 6
      com.unity.perception/Runtime/Randomization/Scenarios/PerceptionScenario.cs
  2. 3
      com.unity.perception/Runtime/Randomization/Scenarios/UnitySimulationScenario.cs

6
com.unity.perception/Runtime/Randomization/Scenarios/PerceptionScenario.cs


/// </summary>
MetricDefinition m_IterationMetricDefinition;
/// <summary>
/// The scriptable render pipeline hook used to capture perception data skips the first frame of the simulation
/// when running locally, so this flag is used to track whether the first frame has been skipped yet.
/// </summary>
protected bool m_SkippedFirstFrame;
/// <inheritdoc/>
protected override bool isScenarioReadyToStart => Time.frameCount >= 1;

3
com.unity.perception/Runtime/Randomization/Scenarios/UnitySimulationScenario.cs


where T : UnitySimulationScenarioConstants, new()
{
/// <inheritdoc/>
protected override bool isScenarioReadyToStart => !Application.isEditor || Configuration.Instance.IsSimulationRunningInCloud() || Time.frameCount > 1;
/// <inheritdoc/>
protected sealed override bool isScenarioComplete => currentIteration >= constants.totalIterations;
/// <inheritdoc/>

正在加载...
取消
保存