浏览代码

using CloneTree() instead of Instantiate()

/dr-test2
Steven Leal 4 年前
当前提交
53ed3744
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      com.unity.perception/Editor/Randomization/ParameterConfigurationEditor.cs
  2. 2
      com.unity.perception/Runtime/Randomization/Scenarios/Abstractions/CsvWriter.cs

2
com.unity.perception/Editor/Randomization/ParameterConfigurationEditor.cs


public override VisualElement CreateInspectorGUI()
{
m_Root = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(
$"{k_TemplatesFolder}/ParameterConfiguration.uxml").Instantiate();
$"{k_TemplatesFolder}/ParameterConfiguration.uxml").CloneTree();
m_ParameterContainer = m_Root.Query<VisualElement>("parameter-container").First();
m_ScenarioContainer = m_Root.Query<VisualElement>("configuration-container");

2
com.unity.perception/Runtime/Randomization/Scenarios/Abstractions/CsvWriter.cs


var output = $"Global Iteration{m_Delimiter}";
foreach (var parameter in m_SelectedParameters)
{
output += $"{parameter.parameterName} ({parameter.ParameterTypeName}){m_Delimiter}";
output += $"{parameter.parameterName}{m_Delimiter}";
}
if (additionalHeaders != null)
{

正在加载...
取消
保存