Setting the position of an image widget in UMG via Tick to follow the mouse can result in a noticeable lag.

I’m working on a feature where when the mouse hovers over a specific actor within a widget area, an interactive hint is displayed. Now I have a question about showing this interactive hint icon: if I update the position of the interactive hint image widget every tickaggio to follow the mouse, there is a noticeable lag. How can I achieve the lag‑free effect shown in the second video? Or is my approach fundamentally wrong and should not be done this way? Any advice would be greatly appreciated. Thank you very much!

1st Method - Software Cursor

Create a widget bp with only the image cursor

Change the software cursor(example:)

From your item bp, add a box collision and add those event:

2nd method - WidgetComponent with Tooltip

The 2nd method will require to create a widget bp with a custom tooltip but this is more expensive to run and triggering it is kinda slow as shown below:

1 Like

Thank you for the method. Approach 1 works perfectly. I still have one question: is it possible for the system cursor to remain visible as well?

1 Like

Are you using a custom cursor image for the default cursor ?

If yes you can add another image in the WBP_HandCursor to simulate that with an offset+overlay.

No, my default cursor is the system cursor.

I recommend using a custom one for the default cursor for your game.

Otherwise you will need to get the current system cursor texture from the user pc and probably need to convert .ani to .png and then into unreal format, which will require c++. Note that this will likely require a huge amount of work hours to implement this method.

1 Like

Got it, thanks!

1 Like