UniversalAdditionalCameraDataEditor.cs 649 B

12345678910111213141516171819
  1. using UnityEngine.Rendering.Universal;
  2. namespace UnityEditor.Rendering.Universal
  3. {
  4. [CanEditMultipleObjects]
  5. // Disable the GUI for additional camera data
  6. [CustomEditor(typeof(UniversalAdditionalCameraData))]
  7. class UniversalAdditionalCameraDataEditor : Editor
  8. {
  9. public override void OnInspectorGUI()
  10. {
  11. }
  12. [MenuItem("CONTEXT/UniversalAdditionalCameraData/Remove Component")]
  13. static void RemoveComponent(MenuCommand command)
  14. {
  15. EditorUtility.DisplayDialog("Component Info", "You can not delete this component, you will have to remove the camera.", "OK");
  16. }
  17. }
  18. }