Skip to content

Commit aec5efc

Browse files
authored
FIX: Don't install action trigger hook when notifications set to UnityEvents (case ISXB-711) (#2089)
1 parent d5f8543 commit aec5efc

File tree

1 file changed

+3
-1
lines changed
  • Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,9 @@ private void UpdateDelegates()
981981
}
982982
if (m_AllMapsHashCode != allMapsHashCode)
983983
{
984-
InstallOnActionTriggeredHook();
984+
if (m_NotificationBehavior != PlayerNotifications.InvokeUnityEvents)
985+
InstallOnActionTriggeredHook();
986+
985987
CacheMessageNames();
986988
m_AllMapsHashCode = allMapsHashCode;
987989
}

0 commit comments

Comments
 (0)