Files
PrinceOfGlory/Packages/Custom/com.unity.render-pipelines.universal@14.0.9/Editor/RendererFeatures/ScreenSpaceShadowsEditor.cs
kridoo 6e91a0c7f0 111
2025-09-15 17:32:08 +08:00

37 lines
1.0 KiB
C#

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);
}
}
}