UnityGame/Library/PackageCache/com.unity.render-pipelines.universal/Editor/RendererFeatures/ScreenSpaceShadowsEditor.cs

37 lines
1.0 KiB
C#
Raw Normal View History

2024-10-27 10:53:47 +03:00
using UnityEngine;
using UnityEngine.Rendering.Universal;
namespace UnityEditor.Rendering.Universal
{
[CustomEditor(typeof(ScreenSpaceShadows))]
internal class ScreenSpaceShadowsEditor : Editor
{
#region Serialized Properties
private SerializedProperty m_SettingsProp;
#endregion
private bool m_IsInitialized = false;
private struct Styles
{
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.");
}
private void Init()
{
m_SettingsProp = serializedObject.FindProperty("m_Settings");
m_IsInitialized = true;
}
public override void OnInspectorGUI()
{
if (!m_IsInitialized)
{
Init();
}
EditorGUILayout.PropertyField(m_SettingsProp, Styles.Description);
}
}
}