No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ScreenSpaceShadowsEditor.cs 1.0KB

123456789101112131415161718192021222324252627282930313233343536
  1. using UnityEngine;
  2. using UnityEngine.Rendering.Universal;
  3. namespace UnityEditor.Rendering.Universal
  4. {
  5. [CustomEditor(typeof(ScreenSpaceShadows))]
  6. internal class ScreenSpaceShadowsEditor : Editor
  7. {
  8. #region Serialized Properties
  9. private SerializedProperty m_SettingsProp;
  10. #endregion
  11. private bool m_IsInitialized = false;
  12. private struct Styles
  13. {
  14. public static GUIContent Description = EditorGUIUtility.TrTextContent("Description", "This feature resolves the cascaded shadows in screen space, so there is no options now. It might have additional settings later.");
  15. }
  16. private void Init()
  17. {
  18. m_SettingsProp = serializedObject.FindProperty("m_Settings");
  19. m_IsInitialized = true;
  20. }
  21. public override void OnInspectorGUI()
  22. {
  23. if (!m_IsInitialized)
  24. {
  25. Init();
  26. }
  27. EditorGUILayout.PropertyField(m_SettingsProp, Styles.Description);
  28. }
  29. }
  30. }