From e03e3042cf29c11ef89f07c8c187472d04ba896f Mon Sep 17 00:00:00 2001 From: Pauliusd01 Date: Fri, 2 Feb 2024 10:58:39 +0200 Subject: [PATCH 1/3] Update PlayerInputManager.cs --- .../InputSystem/Plugins/PlayerInput/PlayerInputManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInputManager.cs b/Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInputManager.cs index 42696bfeec..8600ff5975 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInputManager.cs @@ -501,7 +501,7 @@ private bool CheckIfPlayerCanJoin(int playerIndex = -1) if (m_MaxPlayerCount >= 0 && playerCount >= m_MaxPlayerCount) { - Debug.LogError("Have reached maximum player count of " + maxPlayerCount, this); + Debug.LogWarning("Have reached maximum player count of " + maxPlayerCount, this); return false; } From f97d0226af63a78460bb47a4fc911dc5420b8c91 Mon Sep 17 00:00:00 2001 From: Pauliusd01 Date: Fri, 2 Feb 2024 11:08:48 +0200 Subject: [PATCH 2/3] Update CHANGELOG.md --- Packages/com.unity.inputsystem/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/Packages/com.unity.inputsystem/CHANGELOG.md b/Packages/com.unity.inputsystem/CHANGELOG.md index a86d56b371..3c61cec9a9 100644 --- a/Packages/com.unity.inputsystem/CHANGELOG.md +++ b/Packages/com.unity.inputsystem/CHANGELOG.md @@ -12,6 +12,7 @@ however, it has to be formatted properly to pass verification tests. ### Changed - From 2023.2 forward: UI toolkit now uses the "UI" action map of project-wide actions as their default input actions. Previously, the actions were hardcoded and were based on `DefaultInputActions` asset which didn't allow user changes. Also, removing bindings or renaming the 'UI' action map of project wide actions will break UI input for UI toolkit. +- Changed the 'Max player count reached' error to a warning instead. ### Added - Added new methods and properties to [`InputAction`](xref:UnityEngine.InputSystem.InputAction): From fd0544e22ecf3f79cb1fcbbc4b15c46efaacd819 Mon Sep 17 00:00:00 2001 From: Pauliusd01 Date: Fri, 2 Feb 2024 15:13:35 +0200 Subject: [PATCH 3/3] Update PlayerInputManager.cs --- .../InputSystem/Plugins/PlayerInput/PlayerInputManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInputManager.cs b/Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInputManager.cs index 8600ff5975..2c2c557766 100644 --- a/Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInputManager.cs +++ b/Packages/com.unity.inputsystem/InputSystem/Plugins/PlayerInput/PlayerInputManager.cs @@ -501,7 +501,7 @@ private bool CheckIfPlayerCanJoin(int playerIndex = -1) if (m_MaxPlayerCount >= 0 && playerCount >= m_MaxPlayerCount) { - Debug.LogWarning("Have reached maximum player count of " + maxPlayerCount, this); + Debug.LogWarning("Maximum number of supported players reached: " + maxPlayerCount, this); return false; }