17 lines
511 B
C#
17 lines
511 B
C#
|
|
using UnityEngine.Rendering.PostProcessing;
|
||
|
|
|
||
|
|
namespace UnityEditor.Rendering.PostProcessing
|
||
|
|
{
|
||
|
|
[PostProcessEditor(typeof(LensDistortion))]
|
||
|
|
internal sealed class LensDistortionEditor : DefaultPostProcessEffectEditor
|
||
|
|
{
|
||
|
|
public override void OnInspectorGUI()
|
||
|
|
{
|
||
|
|
if (RuntimeUtilities.isVREnabled)
|
||
|
|
EditorGUILayout.HelpBox("Lens Distortion is automatically disabled when VR is enabled.", MessageType.Warning);
|
||
|
|
|
||
|
|
base.OnInspectorGUI();
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|