浏览代码

Fixed an exception when trying to display editor ui of an empty debug panel with overridden OnEditorGUI .

/RenderPassXR_Sandbox
Julien Ignace 7 年前
当前提交
a86538d9
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3
      Assets/ScriptableRenderPipeline/Core/Debugging/DebugMenuUI.cs
  2. 2
      Assets/ScriptableRenderPipeline/Core/Debugging/DebugPanelUI.cs

3
Assets/ScriptableRenderPipeline/Core/Debugging/DebugMenuUI.cs


public void OnEditorGUI()
{
s_UIChanged = false;
m_DebugPanelUIs[m_ActivePanelIndex].OnEditorGUI();
if(!m_DebugPanelUIs[m_ActivePanelIndex].empty)
m_DebugPanelUIs[m_ActivePanelIndex].OnEditorGUI();
if(s_UIChanged)
{
UnityEditorInternal.InternalEditorUtility.RepaintAllViews();

2
Assets/ScriptableRenderPipeline/Core/Debugging/DebugPanelUI.cs


protected List<DebugItemUI> m_ItemsUI = new List<DebugItemUI>();
protected int m_SelectedItem = -1;
public bool empty { get { return m_DebugPanel.itemCount == 0; } }
public int itemCount { get { return m_ItemsUI.Count; } }
public DebugPanelUI()

正在加载...
取消
保存