Skip to content

Commit 89f9dee

Browse files
committed
Bypass early out UIInputModule processing
Uses InputManager.isReplayActive flag
1 parent 9343b0a commit 89f9dee

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Packages/com.unity.inputsystem/InputSystem/Plugins/UI/InputSystemUIInputModule.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,11 @@ private bool shouldIgnoreFocus
10011001
// if running in the background is enabled, we already have rules in place what kind of input
10021002
// is allowed through and what isn't. And for the input that *IS* allowed through, the UI should
10031003
// react.
1004-
get => explictlyIgnoreFocus || InputRuntime.s_Instance.runInBackground;
1004+
get => explictlyIgnoreFocus || InputRuntime.s_Instance.runInBackground
1005+
#if UNITY_EDITOR
1006+
|| InputSystem.s_Manager.isReplayActive
1007+
#endif
1008+
;
10051009
}
10061010

10071011
/// <summary>

0 commit comments

Comments
 (0)