23 lines
579 B
C#
23 lines
579 B
C#
|
using System.Collections.Generic;
|
||
|
|
||
|
namespace UnityEngine.Rendering.Universal
|
||
|
{
|
||
|
public abstract class DebugDisplaySettingsPanel : IDebugDisplaySettingsPanelDisposable
|
||
|
{
|
||
|
private readonly List<DebugUI.Widget> m_Widgets = new List<DebugUI.Widget>();
|
||
|
|
||
|
public abstract string PanelName { get; }
|
||
|
public DebugUI.Widget[] Widgets => m_Widgets.ToArray();
|
||
|
|
||
|
protected void AddWidget(DebugUI.Widget widget)
|
||
|
{
|
||
|
m_Widgets.Add(widget);
|
||
|
}
|
||
|
|
||
|
public void Dispose()
|
||
|
{
|
||
|
m_Widgets.Clear();
|
||
|
}
|
||
|
}
|
||
|
}
|