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"

Widget Button OnReleased doesn't work

Hi Guys, I have problems with the event "OnReleased" of a Button in a widget. I created a button in the widget and added the events "OnClicked", "OnPressed", "OnReleased" and "OnUnhovered" like you can see in the image below:

![alt text][1]

Then in the Level Blueprint I created a function with a Timer that everytime that I press the button, makes rotate an object. When I release the button it should Clear the timer and Stop the rotation of the object, but it doesn't work. The Rotation stops only when I Unhover the button but not when I release it.

![alt text][2]

So I don't understand why the OnUnhovered event works and not the OnReleased event.

Any clue of what is happening or what am i doing wrong?

Thank you so much!

Héctor [1]: /storage/temp/212124-01.jpg [2]: /storage/temp/212125-02.jpg

Product Version: UE 4.15
01.jpg (733.3 kB)
02.jpg (735.4 kB)
more ▼

asked Sep 04 '17 at 03:22 AM in Blueprint Scripting

avatar image

8 8 11 13

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

1 answer: sort voted first

Hi guys, finally i found a solution. I stop using the Onreleased Event, and instead of that i create a variable called "Rotation Status" and connected to a branch that evaluate if the button is pressed or not. In case if is not pressed then stops the animation.

Here is the Blueprint if someone need it.


alt text

rotation.jpg (715.1 kB)
more ▼

answered Sep 05 '17 at 07:12 PM

avatar image

8 8 11 13

(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