IDebugDisplaySettingsQuery.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. using UnityEngine;
  2. namespace UnityEngine.Rendering.Universal
  3. {
  4. /// <summary>
  5. /// Interface for determining what kind of debug settings are currently active.
  6. /// </summary>
  7. public interface IDebugDisplaySettingsQuery
  8. {
  9. /// <summary>
  10. /// Checks whether ANY of the debug settings are currently active.
  11. /// </summary>
  12. bool AreAnySettingsActive { get; }
  13. /// <summary>
  14. /// Checks whether the current state of these settings allows post-processing.
  15. /// </summary>
  16. bool IsPostProcessingAllowed { get; }
  17. /// <summary>
  18. /// Checks whether lighting is active for these settings.
  19. /// </summary>
  20. bool IsLightingActive { get; }
  21. /// <summary>
  22. /// Attempts to get the color used to clear the screen for this debug setting.
  23. /// </summary>
  24. /// <param name="color">A reference to the screen clear color to use.</param>
  25. /// <returns>"true" if we updated the color, "false" if we didn't change anything.</returns>
  26. bool TryGetScreenClearColor(ref Color color);
  27. }
  28. }