Skip to content

Commit 81d708a

Browse files
committed
Fix comment
1 parent 2eb009a commit 81d708a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)