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.
asked Jul 22 '16 at 09:30 PM in Blueprint Scripting
Follow this question
Once you sign in you will be able to subscribe for any updates here