LensFlareEditor.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using UnityEditor;
  2. namespace UnityEngine
  3. {
  4. /// <summary>
  5. /// Editor for Flare (builtin): Editor to show an error message
  6. /// </summary>
  7. [CustomEditorForRenderPipeline(typeof(UnityEngine.Flare), typeof(Rendering.RenderPipelineAsset))]
  8. class FlareEditor : Editor
  9. {
  10. /// <summary>
  11. /// Implement this function to make a custom inspector
  12. /// </summary>
  13. public override void OnInspectorGUI()
  14. {
  15. EditorGUILayout.HelpBox("This asset doesn't work on SRP, use Lens Flare (SRP) instead.", MessageType.Error);
  16. }
  17. }
  18. /// <summary>
  19. /// Editor for Lens Flare (builtin): Editor to show an error message
  20. /// </summary>
  21. [CustomEditorForRenderPipeline(typeof(UnityEngine.LensFlare), typeof(Rendering.RenderPipelineAsset))]
  22. class LensFlareEditor : Editor
  23. {
  24. /// <summary>
  25. /// Implement this function to make a custom inspector
  26. /// </summary>
  27. public override void OnInspectorGUI()
  28. {
  29. EditorGUILayout.HelpBox("This component doesn't work on SRP, use Lens Flare (SRP) instead.", MessageType.Error);
  30. }
  31. }
  32. }