is there a way to have a direction aware hover effect?

is there a way to have a direction aware hover effect? for example when the mouse starts hovering from the right side of the button a certain animation or hover effect plays, and if hovered from the left a different animation play

Sure, I’ve overridden onMouseMove in a user widget:

Which gives you -180<=>180:

You should be able to derive what you need from here. Add 180 to Atan2 to get 0-360 if that’s easier to work with.

1 Like