diff --git a/com.unity.render-pipelines.core/Editor/CoreEditorUtils.cs b/com.unity.render-pipelines.core/Editor/CoreEditorUtils.cs index 12cf2bb05c5..c9520e64f16 100644 --- a/com.unity.render-pipelines.core/Editor/CoreEditorUtils.cs +++ b/com.unity.render-pipelines.core/Editor/CoreEditorUtils.cs @@ -227,6 +227,7 @@ public static void DrawMultipleFields(GUIContent label, SerializedProperty[] ppt public static void DrawSplitter(bool isBoxed = false) { var rect = GUILayoutUtility.GetRect(1f, 1f); + float xMin = rect.xMin; // Splitter rect should be full-width rect.xMin = 0f; @@ -234,7 +235,7 @@ public static void DrawSplitter(bool isBoxed = false) if (isBoxed) { - rect.xMin = EditorGUIUtility.singleLineHeight; + rect.xMin = xMin == 7.0 ? 4.0f : EditorGUIUtility.singleLineHeight; rect.width -= 1; } @@ -299,6 +300,7 @@ public static bool DrawHeaderFoldout(GUIContent title, bool state, bool isBoxed { const float height = 17f; var backgroundRect = GUILayoutUtility.GetRect(1f, height); + float xMin = backgroundRect.xMin; var labelRect = backgroundRect; labelRect.xMin += 16f; @@ -328,7 +330,7 @@ public static bool DrawHeaderFoldout(GUIContent title, bool state, bool isBoxed { labelRect.xMin += 5; foldoutRect.xMin += 5; - backgroundRect.xMin = EditorGUIUtility.singleLineHeight; + backgroundRect.xMin = xMin == 7.0 ? 4.0f : EditorGUIUtility.singleLineHeight; backgroundRect.width -= 1; } diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index f3b7bbeeb88..22ed5d951b4 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -92,6 +92,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Close Add Override popup of Volume Inspector when the popup looses focus (case 1258571) - Light quality setting for contact shadow set to on for High quality by default. - Fixed an exception thrown when closing the look dev because there is no active SRP anymore. +- Fixed alignment of framesettings in HDRP Default Settings ### Changed - Preparation pass for RTSSShadows to be supported by render graph.