浏览代码

Added randomization states

/fod_generator_randomization_changes
Steven Borkman 4 年前
当前提交
6df53059
共有 2 个文件被更改,包括 20 次插入0 次删除
  1. 9
      com.unity.perception/Runtime/Randomization/Randomizers/Randomizer.cs
  2. 11
      com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs

9
com.unity.perception/Runtime/Randomization/Randomizers/Randomizer.cs


/// </summary>
protected virtual void OnScenarioComplete() { }
protected virtual void OnScenarioStart() { }
/// <summary>
/// OnStartRunning is called on the first frame a Randomizer is enabled
/// </summary>

/// </summary>
protected virtual void OnUpdate() { }
public virtual void OnDrawGizmos() { }
internal virtual void Create()
{
OnCreate();

internal virtual void IterationEnd()
{
OnIterationEnd();
}
internal virtual void ScenarioStart()
{
OnScenarioStart();
}
internal virtual void ScenarioComplete()

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


Debug.Log($"No configuration file found at {defaultConfigFilePath}. " +
"Proceeding with built in scenario constants and randomizer settings.");
#endif
foreach (var randomizer in activeRandomizers)
randomizer.ScenarioStart();
}
struct IterationMetricData

// Perform new frame tasks
foreach (var randomizer in activeRandomizers)
randomizer.Update();
}
void OnDrawGizmos()
{
foreach (var randomizer in activeRandomizers)
{
randomizer.OnDrawGizmos();
}
}
/// <summary>

正在加载...
取消
保存