I can’t seem to get this to work - I’ve got a 3D widget on my screen (a chat window) that I’m trying to get a focus on when I press a certain key.
At the moment, after the key event is triggered I do a cast to the widget, and call a custom event on the widget itself to set mode to UIOnly and set keyboard focus on the input box, but that doesn’t work, it simply won’t respond to any click events.
In addition to this issue, I tried to debug by adding a big ‘button’ that simply does a Print String “CLICKED” when clicked, and I can’t even click that. Or even hover over it. It’s like the thing simply doesn’t exist in any interactive form.
What I did in 4.6 is create a new function getInput in the UMG Widget. This func receives 1 string input variable. Based on its input it manipulates the UMG widgets whichever way I want.
Then in MyCharacter I added some keyboard Events, called getUserWidgetObject, cast to my UMG and called my function with the pressed button data.
That’s how it looks like:
Thank you really, i’ve been tweaking everything from Actor class to Trace options without getting it working, i then tried to export it to an older project and it worked, but back to te current, nothing… and that was this ! Thaaaaaanks