UMG - mouse over / mouse off

evillego6
Fri, 13 Feb 2015 00:47:46 +0000
UI

Hi all,

I’m trying to implement a system in a strategy game where you can mouse over either a character or a UI element to cause an information panel to appear on the screen. Then when you’re no longer hovering over the character or the UI element, the information panel disappears. This is pretty easy for the character side of things, as I can just use the OnBeginCursorOver and OnEndCursorOver events to turn the information panel on and off.

However, I’m not so clear on how to do this for a UMG user widget. I know that borders have a OnMouseMove event, but I don’t think that that can be used to detect when the cursor leaves the border’s space. There is also a “IsHovered” node present for user widgets, but I think that only really works for buttons.

What is the recommended way to handle detecting whether or not the cursor is currently hovering over a UI element?

7 posts - 6 participants