Skip to content

Commit dca1633

Browse files
ekcohAlexTyrer
andauthored
FIX: Modified constraint for enabling project-wide actions to get consistent behaviour in behaviour in player and play-mode (#1885)
* FIX: Modified constraint for enabling project-wide actions to allow similar behaviour in player and play-mode. --------- Co-authored-by: Alex Tyrer <[email protected]>
1 parent a4ea6b6 commit dca1633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,7 @@ private static void EnableActions()
30243024
{
30253025
#if UNITY_EDITOR
30263026
// Abort if not in play-mode in editor
3027-
if (!EditorApplication.isPlaying)
3027+
if (!EditorApplication.isPlayingOrWillChangePlaymode)
30283028
return;
30293029
#endif // UNITY_EDITOR
30303030
if (actions == null)

0 commit comments

Comments
 (0)