diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index b7bb67d5b7..7af302e456 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -13,6 +13,7 @@ however, it has to be formatted properly to pass verification tests. ### Changed - From 2023.2 forward: UI toolkit now uses the "UI" action map of project-wide actions as their default input actions. Previously, the actions were hardcoded and were based on `DefaultInputActions` asset which didn't allow user changes. Also, removing bindings or renaming the 'UI' action map of project wide actions will break UI input for UI toolkit. - Changed the 'Max player count reached' error to a warning instead. +- Removed "Input Actions" title from UI-Toolkit Input Action Editor when used in a window and not embedded in Project Settings. ### Added - Added new methods and properties to [`InputAction`](xref:UnityEngine.InputSystem.InputAction): @@ -39,7 +40,8 @@ however, it has to be formatted properly to pass verification tests. - Fixed "Listen" functionality for selecting an input sometimes expecting the wrong input type. - Fixed console errors that can be produced when opening input package settings from the Inspector. - Fixed InputManager.asset file growing in size on each Reset call. -- Fixed Opening InputDebugger throws 'Action map must have state at this point' error +- Fixed Opening InputDebugger throws 'Action map must have state at this point' error. +- Fixed Project Settings header title styling for Input Actions editor. ## [1.8.0-pre.2] - 2023-11-09 diff --git a/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/InputActionsEditorWindow.cs b/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/InputActionsEditorWindow.cs index 5c3df016b4..db18da81c7 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/InputActionsEditorWindow.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/InputActionsEditorWindow.cs @@ -173,6 +173,15 @@ private void BuildUI() rootVisualElement.styleSheets.Add(InputActionsEditorWindowUtils.theme); var view = new InputActionsEditorView(rootVisualElement, stateContainer); view.postSaveAction += PostSaveAction; + + // Hide header when used as a window since redundant with window title and/or tab title + var element = rootVisualElement.Q("header"); + if (element != null) + { + element.style.visibility = Visibility.Hidden; + element.style.display = DisplayStyle.None; + } + stateContainer.Initialize(); } diff --git a/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Resources/InputActionsEditor.uxml b/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Resources/InputActionsEditor.uxml index 3e7f5d36c6..3313873339 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Resources/InputActionsEditor.uxml +++ b/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Resources/InputActionsEditor.uxml @@ -1,7 +1,7 @@