My "On Begin Cursor Over" works, but i want to add it a keyboard event which shows a widget

When i hover the cursor on the zombie, i get what i want(red highlighting the zombie), but in addition ( while i still hover on zombie ) to that when i press a key ( say ctrl ) i want to show a widget which gives me information text, but i can`t. What is the solution?



You can use the IsInputKeyDown or maybe WasInputKeyJustPressed/Released nodes on Tick for a quick solution to check if you are pressing Ctrl, and have the widget show then. Maybe put that behind a gate that you open and close with your Cursor events

1 Like

I have done these, still does not work.


Try IsInputKeyDown instead of JustPressed