暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

IDebugDisplaySettings.cs 1.1KB

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using UnityEngine;
  3. namespace UnityEngine.Rendering
  4. {
  5. /// <summary>
  6. /// Interface for storing the debug settings
  7. /// </summary>
  8. public interface IDebugDisplaySettings
  9. {
  10. /// <summary>
  11. /// Reset the stored debug settings
  12. /// </summary>
  13. void Reset();
  14. /// <summary>
  15. /// Executes an action for each element
  16. /// </summary>
  17. /// <param name="onExecute">The action to execute for each element, accepting an IDebugDisplaySettingsData object as a parameter.</param>
  18. void ForEach(Action<IDebugDisplaySettingsData> onExecute);
  19. /// <summary>
  20. /// Adds a <see cref="IDebugDisplaySettingsData"/> to this instance of <see cref="IDebugDisplaySettings"/>
  21. /// </summary>
  22. /// <param name="newData">The <see cref="IDebugDisplaySettingsData"/> to be added to this settings</param>
  23. /// <returns><see cref="IDebugDisplaySettingsData"/></returns>
  24. IDebugDisplaySettingsData Add(IDebugDisplaySettingsData newData)
  25. {
  26. return null;
  27. }
  28. }
  29. }