File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Packages/com.unity.inputsystem/InputSystem Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3664,9 +3664,9 @@ internal static void OnPlayModeChange(PlayModeStateChange change)
36643664 s_SystemObject . enterPlayModeTime = InputRuntime . s_Instance . currentTime ;
36653665 s_Manager . SyncAllDevicesAfterEnteringPlayMode ( ) ;
36663666#if UNITY_INPUT_SYSTEM_PROJECT_WIDE_ACTIONS
3667- // Don't enable actions if some are already enabled .
3668- // This is useful when you just want specific action maps to be enabled, but not all
3669- // action maps .
3667+ // Check if project-wide actions should be enabled after entering PlayMode .
3668+ // In some cases, like using project-wide actions in PlayerInput, we don't want actions to be
3669+ // enabled when entering PlayMode so that PlayerInput is able to enable the default action map .
36703670 if ( m_EnableActionsAfterEnterPlayMode )
36713671 EnableActions ( ) ;
36723672
You can’t perform that action at this time.
0 commit comments