x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

No hover events for GUI widgets during button press?

I need to get hover events for my widgets all the time, even when a mouse button is being held down. My PlayerController class' InputMode is set for Game&GUI. I am working on a system that allows universal input operations, including dragging with a button held down, between any widgets and actors/components. For this, I also need to know when any of these objects start being "hovered" by the cursor.

It works for scene-objects all the time, but for widgets it only works when the button press (being held down) originally occured on some widget, and not in the scene. So, I can drag without problems from widget to widget, widget to scene-object, scene-object to scene object, but scene-object to widget disables all widget hover events.

Product Version: UE 4.20
Tags:
more ▼

asked Sep 27 '18 at 02:50 PM in C++ Programming

avatar image

MaxPower42
643 65 82 116

avatar image MaxPower42 Sep 27 '18 at 07:12 PM

This is actually a big deal... I also want to have a kind of context menu that pops up when you hold a button on something, picks an option when you release the button, and gets removed as soon as you move the mouse cursor out of it.

But I can't do it, because the widget doesn't respond to anything until the button is released... Isn't there something I can do about this? I believe it has something to do with viewport focus, mouse capture settings etc, but I can't seem to figure it out or find something on it.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This seems more like a workaround than a clean solution to me, but it helps to set a GameAndUI input mode on the player controller right after the press-event to cancel the GUI being completely ignored. If someone has a better fix...

more ▼

answered Sep 29 '18 at 05:10 PM

avatar image

MaxPower42
643 65 82 116

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question