is the widget interaction component only for single player?
so I have a player pawn that has a widget interaction component to interact with dietetic UI which is created by a widget component.
In solo everything works fine where I can go and click on buttons which then execute their code.
And when I test multiplayer where only the local player creates and has the widget component (thus in player 1 instance only his pawn has widget interact and in player 2 instance only their pawn has widget interact). And when they are in the same space I noticed that both can hover and click buttons but the buttons code will never execute?
Does anyone know what is going on or any workarounds?
Edit:
no Iām talking a even more fundamental problem like the UI button is connected to a print string, in single player when I use the widget component it will print string, but when the 2nd player controller and 2nd player pawn enters the level with their widget interaction component, I can press the button but the code will not print string anymore. That is what Iām finding the most strange.
Assuming youāre talking about online as most discussions around multiplayer are, the reason the ālocalā one works is it is the host, the client needs to replicate the input to the widget to host and the host needs to propagate that back out to clients, whether it be done on the host or on a client.
Check this video out, itāll likely be a load of helpful information!
Disclaimer: This link is not associated with Unreal Engine, Epic Games LLC, or their partners.
no Iām talking a even more fundamental problem like the UI button is connected to a print string, in single player when I use the widget component it will print string, but when the 2nd player controller and 2nd player pawn enters the level with their widget interaction component, I can press the button but the code will not print string anymore. That is what Iām finding the most strange.
nvm solved it, this is for people in the future that may get stuck.
when making widget buttons ONLY use āon hoverā or āon pressā events, āon clickā events DOES NOT WORK in multiplayer for some reason