Skip to content

Commit 93a4c69

Browse files
committed
enable actions on entered playmode
1 parent 805f0d9 commit 93a4c69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Packages/com.unity.inputsystem/InputSystem/InputSystem.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3651,6 +3651,9 @@ internal static void OnPlayModeChange(PlayModeStateChange change)
36513651
case PlayModeStateChange.EnteredPlayMode:
36523652
s_SystemObject.enterPlayModeTime = InputRuntime.s_Instance.currentTime;
36533653
s_Manager.SyncAllDevicesAfterEnteringPlayMode();
3654+
#if UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
3655+
EnableActions();
3656+
#endif // UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
36543657
break;
36553658

36563659
case PlayModeStateChange.ExitingPlayMode:

0 commit comments

Comments
 (0)