浏览代码

hide app param config

hide scenario app-param config field if ENABLE_SCENARIO_APP_PARAM_CONFIG is not defined
/generic-asset-sources
Mohsen Kamalzadeh 3 年前
当前提交
84e1f1e6
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7
      com.unity.perception/Editor/Randomization/Editors/ScenarioBaseEditor.cs

7
com.unity.perception/Editor/Randomization/Editors/ScenarioBaseEditor.cs


m_Root = AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(
$"{StaticData.uxmlDir}/ScenarioBaseElement.uxml").CloneTree();
#if !ENABLE_SCENARIO_APP_PARAM_CONFIG
var configuration = m_Root.Q<PropertyField>("configuration-asset");
configuration.style.display = DisplayStyle.None;
m_Scenario.configuration = null;
EditorUtility.SetDirty(m_Scenario);
#endif
m_RandomizerListPlaceholder = m_Root.Q<VisualElement>("randomizer-list-placeholder");
CreatePropertyFields();

正在加载...
取消
保存