Steven Leal
4 年前
当前提交
e7cf2a16
共有 9 个文件被更改,包括 126 次插入 和 116 次删除
-
101com.unity.perception/Editor/Randomization/RunInUSimWindow.cs
-
25com.unity.perception/Editor/Randomization/Uxml/RunInUSimWindow.uxml
-
33com.unity.perception/Runtime/Randomization/Scenarios/FixedLengthScenario.cs
-
11com.unity.perception/Runtime/Randomization/Scenarios/USimScenario.cs
-
29com.unity.perception/Tests/Runtime/Randomization/ScenarioTests.cs
-
7com.unity.perception/Runtime/Randomization/Scenarios/USimScenarioBase.cs
-
3com.unity.perception/Runtime/Randomization/Scenarios/USimScenarioBase.cs.meta
-
30com.unity.perception/Runtime/Randomization/Scenarios/FixedFrameCountScenario.cs
-
3com.unity.perception/Runtime/Randomization/Scenarios/FixedFrameCountScenario.cs.meta
|
|||
namespace UnityEngine.Perception.Randomization.Scenarios |
|||
{ |
|||
public abstract class USimScenarioBase : ScenarioBase |
|||
{ |
|||
|
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 6b9735d0324e476999f22e4731058861 |
|||
timeCreated: 1597687928 |
|
|||
using System; |
|||
|
|||
namespace UnityEngine.Perception.Randomization.Scenarios |
|||
{ |
|||
/// <summary>
|
|||
/// An example scenario where each iteration runs for a fixed number of frames
|
|||
/// </summary>
|
|||
[AddComponentMenu("Randomization/Scenarios/Fixed Frame Count Scenario")] |
|||
public class FixedFrameCountScenario : USimScenario |
|||
{ |
|||
public int framesPerIteration; |
|||
|
|||
public override bool isIterationComplete => currentIterationFrame >= framesPerIteration; |
|||
|
|||
public FixedFrameCountScenario() |
|||
{ |
|||
constants = new USimConstants |
|||
{ |
|||
instanceCount = 1, |
|||
instanceIndex = 0, |
|||
totalIterations = 1000 |
|||
}; |
|||
} |
|||
|
|||
public override void OnInitialize() |
|||
{ |
|||
currentIteration = constants.instanceIndex; |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: a5fd9d0784580a747b3764afd636fc5f |
|||
timeCreated: 1589939921 |
撰写
预览
正在加载...
取消
保存
Reference in new issue