37 lines
1.0 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|