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"

Holding mousebutton prevents IsHovered from triggering

I'm trying to create a ring of buttons which appears at the mouse cursor while holding rightclick, the buttons (categories) can then expand into submenus with more buttons (actions) when hovered over, and releasing rightclick over a button selects it.

I'm having an issue however: Holding rightclick disables the expansion of a button into a new sub-menu, I have no idea why and can't find anything on the topic.

In other words: holding the right mousebutton down prevents the IsHovered condition from becoming true. Is there any way around this?

Player Controller draw context menu Player Controller draw context menu Widget Blueprint Widget Blueprint

Product Version: UE 4.16
more ▼

asked Jul 04 '17 at 01:03 AM in Blueprint Scripting

avatar image

21 1 2 3

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

1 answer: sort voted first

Perhaps create two booleans -- rightMousePressed and rightMouseReleased. Set both to false. When the right mouse is pressed, set rightMousePressed to true. When the right mouse is released, set rightMouseReleased to true.

During the event Tick, check and see if rightMousePressed is true. If so, spawn the widget and set rightMousePressed to false.

From there, you'll need to run your hover logic but this time check and see if rightMouseReleased is also true. If both are true, then do whatever you need to.

more ▼

answered Jul 04 '17 at 01:26 AM

avatar image

116 15 17 21

(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