RenderStreamingEditor.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. namespace Unity.RenderStreaming.Editor
  3. {
  4. public static class RenderStreamingEditor
  5. {
  6. /// <summary>
  7. ///
  8. /// </summary>
  9. /// <param name="settings"></param>
  10. /// <exception cref="ArgumentNullException"></exception>
  11. public static void SetRenderStreamingSettings(RenderStreamingSettings settings)
  12. {
  13. if (settings == null)
  14. {
  15. throw new ArgumentNullException(nameof(settings));
  16. }
  17. RenderStreaming.Settings = settings;
  18. }
  19. /// <summary>
  20. ///
  21. /// </summary>
  22. /// <param name="settings"></param>
  23. /// <exception cref="ArgumentNullException"></exception>
  24. public static void SetSignalingSettings(SignalingSettings settings)
  25. {
  26. if (settings == null)
  27. {
  28. throw new ArgumentNullException(nameof(settings));
  29. }
  30. RenderStreaming.Settings.signalingSettings = settings;
  31. RenderStreaming.ApplySettings();
  32. }
  33. }
  34. }