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"

Drag and Drop Button Unpress


I am creating an inventory system where one of the main objectives is to swap slots.

To do this, i viewed the Drag and Drop tutorial by Wes Brunn since i was not familiar with the drag and drop system of the unreal engine.

In my case everything works as i want, except when the button from where i started draging stays in pressed mode after the drag ended. I want it to change the pressed state after i finish the drag and i have not found a single way to change the button state.

One thing Wes does in the video is a drag enter and leave event and he forces certain styles. However, this is not what i want since i would be changing the style of the button right after the mouse stops hovering it ( which is not my objective ) and because it looks unpressed when he is stuck in pressed which would make me do other logics to reswap the styles after the mouse goes over and fixes the pressed-unpressed issue

I have tried to desactivate the button and activate it again as a workaround, but the button still stays in pressed mode.

I heard that the button states are not exposed, but i would like some sugestions since i dont want to be changing styles and checking hovers to reswap styles.

Product Version: UE 4.12
more ▼

asked Jul 22 '16 at 09:30 PM in Blueprint Scripting

avatar image

Pedro Moniz
5 1 4 4

avatar image Pedro Moniz Jul 22 '16 at 09:56 PM

I have solved my problem by using styles and cheating. Logic ended up super easy but it was still cheating, basicly pressed and normal are the same color and i change the style while draging and change it back after draging.

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

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