I’m working on a multiplayer project that is using the WidgetInteractionComponent to get input from users in VR. Each user has 2 instances of WIC, one for each hand.
If I launch and run without connecting any players to hosts (i.e. basically in single player mode), user input is properly routed to the UMG menus for the user - as the user moves their virtual cursor, the widgets highlight properly, clicks are handled, etc.
As soon as one player connects to another player that is acting as the host, the WIC for one hand of both players stops working. For both the host and the client player, one hand continues to work fine, but for both players their other hand’s input no longer works - no UMG elements highlight anymore and button down events still work but clicks do not (i.e. UMG buttons no longer highlight but they do show the pressed state when pressed, but a press+release action does not result in a click event).
After lots of experimentation and wild guesses, I changed the WIC pointer index values from 0 and 1 (for left and right hands, respectively), to 1 and 2.
In single player mode, using pointer indexes of 0 and 1 works fine, but in multiplayer it’s as if a pointer index of 0 is silently ignored or not allowed. Once I changed each player’s WICs to use pointer indexes of 1 and 2, then things worked consistently in both singleplayer and multiplayer, and for both players.
I tried this on both 4.13.2 and 4.14.1 and both had the same behavior.
This problem is no longer holding me up, but I thought I’d report it because it took me forever to figure out and because I’m not sure if this is intended behavior that I don’t understand or a bug somewhere.