while working on the UI i’ve noticed that there’s no straightforward way of handling widgets hovering.
In case of Slate, you have to override mouse enter function. In case of UMG there is a mouse move event, that is executed every tick (could be solved by introducing mouse enter event which is present in Slate) and once the mouse enters widget canvas, which is bad, since that way you can’t handle hovering on specific widgets within your widget.
Why there is no ‘OnHover’ delegate? That first, will solve issue with the full-screen widgets, and second, that will speedup workflow for both Slate and UMG ways.
I might be missing something here, though. Any entries are welcome
Update: Just realized it could fit engine category better.
Update #2: So, 5 minutes of coding and I’ve added hover events for button widget, both Slate and UMG. Should be easy to add it to a lower-level widget
P.S. It’s quite confusing, SButton is a child of SBorder, while UButton isn’t child of UBorder, which has no obvious reasons to do so. Would be better to add these events to border widget, since it’s the one which is presumed to have hovering capabilities, if i understand it correctly.
I’d be glad to make a pull request if anyone is interested