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

29 lines
887 B
C#

using UnityEngine.Rendering.Universal;
namespace UnityEditor.Rendering.Universal
{
[CanEditMultipleObjects]
[CustomEditor(typeof(UniversalRenderPipelineGlobalSettings))]
sealed class UniversalGlobalSettingsEditor : Editor
{
SerializedUniversalRenderPipelineGlobalSettings m_SerializedGlobalSettings;
void OnEnable()
{
m_SerializedGlobalSettings = new SerializedUniversalRenderPipelineGlobalSettings(serializedObject);
}
public override void OnInspectorGUI()
{
var serialized = m_SerializedGlobalSettings;
serialized.serializedObject.Update();
// In the quality window use more space for the labels
UniversalRenderPipelineGlobalSettingsUI.Inspector.Draw(serialized, this);
serialized.serializedObject.ApplyModifiedProperties();
}
}
}