From e20e7890d5023b0940b9e061539cc94fc7186f85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Vauchelles?= Date: Wed, 1 Jul 2020 11:41:31 +0200 Subject: [PATCH] Use the wide mode to force the UI drawing on a single line (1251235) --- .../Editor/QuaternionPropertyDrawer.cs | 3 +++ com.unity.render-pipelines.high-definition/CHANGELOG.md | 1 + 2 files changed, 4 insertions(+) diff --git a/com.unity.render-pipelines.core/Editor/QuaternionPropertyDrawer.cs b/com.unity.render-pipelines.core/Editor/QuaternionPropertyDrawer.cs index b6096a16210..3bbe0fb103a 100644 --- a/com.unity.render-pipelines.core/Editor/QuaternionPropertyDrawer.cs +++ b/com.unity.render-pipelines.core/Editor/QuaternionPropertyDrawer.cs @@ -9,7 +9,10 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten { var euler = property.quaternionValue.eulerAngles; EditorGUI.BeginChangeCheck(); + var w = EditorGUIUtility.wideMode; + EditorGUIUtility.wideMode = true; euler = EditorGUI.Vector3Field(position, label, euler); + EditorGUIUtility.wideMode = w; if (EditorGUI.EndChangeCheck()) property.quaternionValue = Quaternion.Euler(euler); } diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 6c5b88af461..d182de5939f 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -701,6 +701,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fix supported Mac platform detection to handle new major version (11.0) properly - Fixed typo in the Render Pipeline Wizard under HDRP+VR - Change transparent SSR name in frame settings to avoid clipping. +- Fixed UI drawing of the quaternion (1251235) ### Changed - Improve MIP selection for decals on Transparents