[UMG] How to set button style to "hover" when in focused

Is it possible to change current style of button with blueprint? For exaple I want to set my button style to “hover” when button is focused. I can check my button on focus with “Has Keyboard Focus” node, but I don’t have node to set “hover” style (except that I can make new style).

P.S. It’s not related to this question, but do we have widget layering? Is it possible to hide half of the container below other container?

did you ever figure out a workaround?

You have to add all buttons to an array and cycle through the array on event tick to see if it has keyboard focus, if it has, you set it to predefined style in your variable list that looks like hovered

I found a way you don’t have to put things in an array. Each button can query itself.

1 Like