浏览代码

Fixed categorical parameter options enumeration

/main
Steven Leal 4 年前
当前提交
d4adef85
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.perception/Runtime/Randomization/Parameters/CategoricalParameter.cs

2
com.unity.perception/Runtime/Randomization/Parameters/CategoricalParameter.cs


get
{
var catOptions = new List<(T, float)>(m_Categories.Count);
for (var i = 0; i < catOptions.Count; i++)
for (var i = 0; i < m_Categories.Count; i++)
catOptions.Add((m_Categories[i], probabilities[i]));
return catOptions;
}

正在加载...
取消
保存