From 2714c493cbbd38777964ee7d251619b27f64e550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Malrat?= Date: Mon, 9 Dec 2024 13:40:08 -0500 Subject: [PATCH] Fixed action properties editor ui --- Packages/com.unity.inputsystem/CHANGELOG.md | 1 + .../InputSystem/Editor/InputParameterEditor.cs | 10 +++++++++- .../PackageResources/InputActionsEditor.uxml | 4 ++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index 1b5a0f7e73..aedd27901d 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -31,6 +31,7 @@ however, it has to be formatted properly to pass verification tests. - Fixed documentation to clarify bindings with modifiers `overrideModifiersNeedToBePressedFirst` configuration [ISXB-806](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-806). - Fixed an issue in `Samples/Visualizers/GamepadVisualizer.unity` sample where the visualization wouldn't handle device disconnects or current device changes properly (ISXB-1243). - Fixed an issue when displaying Serialized InputAction's Processor properties inside the Inspector window. [ISXB-1269](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1269) +- Fixed Action properties edition in the UI Toolkit version of the Input Actions Asset editor. [ISXB-1278](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1278) ### Changed - Added back the InputManager to InputSystem project-wide asset migration code with performance improvement (ISX-2086). diff --git a/Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs b/Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs index cbb906652a..b37206bf74 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Editor/InputParameterEditor.cs @@ -249,8 +249,16 @@ public void OnDrawVisualElements(VisualElement root, Action onChangedCallback) m_HelpBox = new HelpBox(m_HelpBoxText.text, HelpBoxMessageType.None); - m_DefaultToggle = new Toggle("Default") { value = m_UseDefaultValue }; + m_DefaultToggle = new Toggle("Default") + { + value = m_UseDefaultValue, + style = + { + flexDirection = FlexDirection.RowReverse + } + }; m_DefaultToggle.RegisterValueChangedCallback(evt => ToggleUseDefaultValue(evt, onChangedCallback)); + m_DefaultToggle.Q