diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index a86d56b371..0695503d13 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -36,6 +36,7 @@ however, it has to be formatted properly to pass verification tests. - Fixed missing name in window title for Input Action assets. - Fixed showing action properties view when there were no actions. - 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. ## [1.8.0-pre.2] - 2023-11-09 diff --git a/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/ActionMapsView.cs b/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/ActionMapsView.cs index ae13bced4f..1bf2da589c 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/ActionMapsView.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Editor/UITKAssetEditor/Views/ActionMapsView.cs @@ -13,11 +13,9 @@ namespace UnityEngine.InputSystem.Editor internal class ActionMapsView : ViewBase { public ActionMapsView(VisualElement root, StateContainer stateContainer) - : base(stateContainer) + : base(root, stateContainer) { - m_Root = root; - - m_ListView = m_Root?.Q("action-maps-list-view"); + m_ListView = root.Q("action-maps-list-view"); m_ListView.selectionType = UIElements.SelectionType.Single; m_ListViewSelectionChangeFilter = new CollectionViewSelectionChangeFilter(m_ListView); @@ -61,12 +59,11 @@ public ActionMapsView(VisualElement root, StateContainer stateContainer) CreateSelector(s => new ViewStateCollection(Selectors.GetActionMapNames(s)), (actionMapNames, state) => new ViewState(Selectors.GetSelectedActionMap(state), actionMapNames)); - addActionMapButton.clicked += AddActionMap; + m_AddActionMapButton = root.Q