Local Splitscreen Multiplayer Input Mode Issues
We are currently adding a local multiplayer mode to our online multiplayer game. While the replication works fine, we experience some strange behaviour concerning the input modes:
Whenever we change the Input Mode of one of the local players (in its player controller blueprint), the Input Mode is changed for the other local players as well. Examples:
However, from the documentation of the respective nodes (Set input mode to Game Only, UI Only, Game and UI), I had thought, the input mode is to be set separately for each player controller. Or am I mistaken here?
There should be a suitable workaround by using only the "Set Input Mode to Game and UI" and setting Widgets in focus or none widget, but I still would be curious if there is not another solution...
asked Jun 20 '16 at 01:52 PM in Blueprint Scripting
What do you usually input in the target slot in your BPs?
answered Jun 20 '16 at 06:07 PM
Rather old questions, but let me answer this for you all:
InputMode is NOT separately set per player. InputMode is set per Viewport. So in this case the GameViewport. So if you have 2 or more local players and you have one of them opening a menu, you CAN'T set the InputMode to "UIOnly", because that effects the other players, that need Game Input, too.
In this case you need to use "GameAndUI" as InputMode.
answered Feb 22 '19 at 02:09 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here