I have a weird problem with the focus on UMG widgets in a local multiplayer (split screen) environment.
In Game mode, after Begin Play, I added a second player with Create Local Player. The player gets created as expected and the viewport gets split horizontally.
In the player controller I added a widget with multiple buttons. The first button gets focused automatically on each side.
When i press D-Pad down with gamepad 1 the behaviour is as follows:
- on the left side not the next button but the one after that gets focused
- on the right side the next button gets focused
When i press D-Pad down with gamepad 2 the behaviour is as follows: - on the right side the next button gets focused (as expected)
I can’t figure this out. Things I tried so far: - I tried setting focus, user focus, keyboard focus in the construct script of the widget.
- Setting the owner of the widget after initialisation
- Using Create Local Player For Platform User
- Delays between creating a player and initializing Widgets
- Replication of the method that initializes the widgets
When i control my characters everything works as expected. Only the focus in the Ui gets messed up.