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"

UMG IsHovered always returns true after mouse drag

Hey there,

In my game I have some buttons that appear when you hover over an image. I do this by having the Event Tick check "is Hovered" for the image and buttons that appear and then is any of those widgets are hovered it sets a bool to true which the buttons visibility is bound too.

Everything works great/as expected, except for if I hover over anything and then hold down the left mouse button and drag off the hovered widgets. The ishovered continues to return true until I next Enter/Exit the widget I dragged from.

In the image below you can see me hovering over a card to make the pop up menu appear and a few other cards have their menus incorrectly since I dragged off them as described.

alt text

alt text

Product Version: UE 4.12
Tags:
bug01.jpg (538.1 kB)
bug02.png (526.7 kB)
more ▼

asked Jul 09 '16 at 04:08 PM in Bug Reports

avatar image

mrcrocker
126 8 20 25

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

2 answers: sort voted first

Hello mrcrocker,

This appears to be a known issue (UE-32910) and it has been submitted to the developers for further consideration. I have provided a link to the original issue below. Please feel free to visit the linked thread for future updates.

Link: https://answers.unrealengine.com/questions/446063/umg-grid-panel-hovered-state-gets-stuck.html

Make it a great day

more ▼

answered Jul 11 '16 at 05:02 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

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

I did a workaround. I used OnMouseEnter and OnMouseLeave for my UserWidget to update a variable created by me.

I think there is a bug in the c++ implementation of widgets and IsHovered is not reliable. ( In c++, it does the same thing, but the base class functionality gets lost somewhere in the inherited classes)

alt text

hovered.png (61.2 kB)
more ▼

answered Sep 16 '16 at 08:53 AM

avatar image

Plosnita
277 5 8 22

(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