PaniniProjectionEditor.cs 621 B

12345678910111213141516171819
  1. using UnityEngine.Rendering.Universal;
  2. namespace UnityEditor.Rendering.Universal
  3. {
  4. [VolumeComponentEditor(typeof(PaniniProjection))]
  5. sealed class PaniniProjectionEditor : VolumeComponentEditor
  6. {
  7. public override void OnInspectorGUI()
  8. {
  9. if (UniversalRenderPipeline.asset?.postProcessingFeatureSet == PostProcessingFeatureSet.PostProcessingV2)
  10. {
  11. EditorGUILayout.HelpBox(UniversalRenderPipelineAssetEditor.Styles.postProcessingGlobalWarning, MessageType.Warning);
  12. return;
  13. }
  14. base.OnInspectorGUI();
  15. }
  16. }
  17. }