Skip to content

Commit e77f650

Browse files
authored
FIX: PlayerInput default ActionMap set to <None> is overwritten (#2170)
1 parent 64b9f9c commit e77f650

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Packages/com.unity.inputsystem/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ however, it has to be formatted properly to pass verification tests.
2222
- Fixed Inspector Window being refreshed all the time when a PlayerInput component is present with Invoke Unity Events nofication mode chosen [ISXB-1448](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1448)
2323
- Fixed an issue where an action with a name containing a slash "/" could not be found via `InputActionAsset.FindAction(string,bool)`. [ISXB-1306](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1306).
2424
- Fixed Gamepad stick up/down inputs that were not recognized in WebGL. [ISXB-1090](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1090)
25+
- Fixed PlayerInput component automatically switching away from the default ActionMap set to 'None'.
2526

2627
## [1.14.0] - 2025-03-20
2728

Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInputEditor.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ void AddEntry(InputAction action, PlayerInput.ActionEvent actionEvent)
551551
var selectedDefaultActionMap = !string.IsNullOrEmpty(playerInput.defaultActionMap)
552552
? asset.FindActionMap(playerInput.defaultActionMap)
553553
: null;
554-
m_SelectedDefaultActionMap = asset.actionMaps.Count > 0 ? 1 : 0;
554+
m_SelectedDefaultActionMap = (asset.actionMaps.Count > 0 && m_SelectedDefaultActionMap == -1) ? 1 : 0;
555555
var actionMaps = asset.actionMaps;
556556
m_ActionMapOptions = new GUIContent[actionMaps.Count + 1];
557557
m_ActionMapOptions[0] = new GUIContent(EditorGUIUtility.TrTextContent("<None>"));

0 commit comments

Comments
 (0)