DebugDisplaySettingsPanel.cs 579 B

12345678910111213141516171819202122
  1. using System.Collections.Generic;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. public abstract class DebugDisplaySettingsPanel : IDebugDisplaySettingsPanelDisposable
  5. {
  6. private readonly List<DebugUI.Widget> m_Widgets = new List<DebugUI.Widget>();
  7. public abstract string PanelName { get; }
  8. public DebugUI.Widget[] Widgets => m_Widgets.ToArray();
  9. protected void AddWidget(DebugUI.Widget widget)
  10. {
  11. m_Widgets.Add(widget);
  12. }
  13. public void Dispose()
  14. {
  15. m_Widgets.Clear();
  16. }
  17. }
  18. }