We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f71c0 commit 21ad066Copy full SHA for 21ad066
Packages/com.unity.inputsystem/InputSystem/InputSystem.cs
@@ -3652,7 +3652,12 @@ internal static void OnPlayModeChange(PlayModeStateChange change)
3652
s_SystemObject.enterPlayModeTime = InputRuntime.s_Instance.currentTime;
3653
s_Manager.SyncAllDevicesAfterEnteringPlayMode();
3654
#if UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
3655
- EnableActions();
+ // Don't enable actions if some are already enabled.
3656
+ // This is useful when you just want specific action maps to be enabled, but not all
3657
+ // action maps.
3658
+ if (!InputSystem.actions.enabled)
3659
+ EnableActions();
3660
+
3661
#endif // UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
3662
break;
3663
0 commit comments