Skip to content

Commit 93e82fb

Browse files
committed
Missed change due to test failure locally.
1 parent 20e7f4e commit 93e82fb

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Assets/Tests/InputSystem/Plugins/InputForUITests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ public void Shutdown_DoesNotDisableProjectWideActionsAsset()
106106
var gameplayMap = new InputActionMap("Gameplay");
107107
gameplayMap.AddAction("Jump", InputActionType.Button, "<Keyboard>/space");
108108
asset.AddActionMap(gameplayMap);
109-
gameplayMap.Enable();
110109

111110
var uiMap = new InputActionMap("UI");
112111
uiMap.AddAction("Point", InputActionType.PassThrough, "<Mouse>/position");
@@ -119,6 +118,9 @@ public void Shutdown_DoesNotDisableProjectWideActionsAsset()
119118
uiMap.AddAction("ScrollWheel", InputActionType.PassThrough, "<Mouse>/scroll");
120119
asset.AddActionMap(uiMap);
121120

121+
// Enable after all maps are added; modifying the asset while any map is enabled is not allowed.
122+
gameplayMap.Enable();
123+
122124
// InputSystem.actions setter throws in play mode, so we use the internal manager property here.
123125
InputSystem.manager.actions = asset;
124126
try

0 commit comments

Comments
 (0)