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"

Pressing a button with blueprints

Heya,

I know this has been asked multiple times, but there doesn't seem to be a clear (or perhaps updated) answer. Simply put, I'd like to hover and press a UMG widget button through the use of blueprints, rather than having it be done by the mouse.

It seems that the answers I've found are overly-complicated for a task like this. Honestly, I might make a UE4 suggestion to add a 'hover' and 'press' toggle in blueprinting to make this whole thing a lot easier. Perhaps a 'set state' to switch between normal, hovered and pressed. Right now, it seems to be quite annoying to set up.

Thank you!

Product Version: UE 4.20
Tags:
more ▼

asked Aug 06 '18 at 03:37 AM in Blueprint Scripting

avatar image

Delos-X
26 1 5 3

avatar image Hemlock Aug 06 '18 at 04:09 AM

What do you mean "rather than having it be done by the mouse"? Do you have your own controller or something?

avatar image Everynone Aug 06 '18 at 07:34 AM

@Hemlock - it's about simulating pressing a button - all the bells and whistles associated with the action but without using the mouse, with states and all. As if you wanted to observe someone else operating the button (perhaps a tutorial sequence showing you what to click)

As far as I know (and I've seen it confirmed by Epic staff) you cannot invoke a button click. It's simply not exposed to blueprint and called only when the mouse cursor interacts with the button.

Your best bet is to extend the existing button in slate and add the functionality you need yourself. I don't think I've seen a workaround for this in BP.

avatar image Delos-X Aug 06 '18 at 09:22 AM

Yeah. What I want to achieve is simply a simulation of a button press/hold/release on a button.

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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