I’m making a multiplayer mobile game where my UI is created on the player controller because I wanted to be able to use the same UI when my player respawns with the same or another character. Now the thing is that when I respawn ,the UI won’t even receive input . I think the problem is tied with the way I’m respawning the player which I’m using the destroy actor node. I would have easily fixed my problem if there was a destroy widget node but that’s not the case . I’m not really sure why this happens but it happens when he respawns because when the player starts the match it all works fine. And I also want to keep using destroy actor if that’s possible since it fixes some problems by itself with the character.
the widget is probably reading values from your character yes? so it may just be that its reference needs updating to the new character that is created. I’m not sure how that would happen but couldn’t you remove the widget from the viewport when the player dies then construct a new one so that it automatically references the new character.
The widget does have a player character reference but it’s being updated that I’m sure, but the UI won’t receive input. I could remove the widget and create a new one but I think that the old widget stays in memory so it’s not very efficient.
Welp removing the parent and making a new widget solved the input problem but I’m scared that it’s gonna be a problem on the memory side of things , that’s if garbage collection doesn’t take care of it