Firstborn/Library/PackageCache/com.unity.render-pipelines..../Editor/GlobalSettings/UniversalGlobalSettingsEdit...
Schaken-Mods 9092858a58 updated to the latest editor
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
2023-05-07 17:43:11 -05:00

30 lines
900 B
C#

using UnityEngine;
using UnityEngine.Rendering.Universal;
namespace UnityEditor.Rendering.Universal
{
[CustomEditor(typeof(UniversalRenderPipelineGlobalSettings))]
[CanEditMultipleObjects]
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
UniversalGlobalSettingsPanelIMGUI.Inspector.Draw(serialized, this);
serialized.serializedObject.ApplyModifiedProperties();
}
}
}