WrapBox controlled by button. How to hide it after time x?

I have a button that sets a wrap box visible, upon clicking the button. However, I would like the wrapBox to disappear when the mouse is UNHOVERED. The button that controls the visibility of the wrapBox has a flipFlop so with each click on the button, it appears and disappears. And I would like to keep this option active, but I would also like it to disappear when unhovered. I tried creating an on event mouse leave, it partially works but after the wrapBox has disappeared to make it reappear I have to click on the button twice and sorry if this is a really stupid question I can’t find a solution.

You will need to replace FlipFlop with a variable:

Hope I read the intention correctly.

1 Like

Oh yes. It work great. Thank you very much. As ever

Do I shall add multiple on mouse leave? It’s seem not possible.

Ok Sequence. I’ve found it. Sorry

Hi have a problem. If I use sequence there is something that happen after event on mouse leave. It seem that sequence doesn’t work well with multiple branches. I never click actually i’m only over but it disappearing fast even i set delay high.
UnrealEditor_rALvOSBjWD



the most lag happen here on this wrapbox logic

Hi everyone. Does anybody have an hint?

It’s near impossible to read your BP, especially with Delays obfuscating what is happening. The Sequence node works fine - I bet Delays fire when you don’t want them to. Consider delegating latent actions to a single event and process it there - otherwise you’d have a debugging nightmare.


Place a breakpoint (F9) on the sequence node and see what the script is doing, step through it.

1 Like

Thank you @Everynone as ever for your patience and support. I place a breakpoint and step sequence on what next it’s seem that every step are on delay node (on false action)
What do you mean by “Consider delegating latent actions to a single event and process it there” sorry i cannot get it.
Thanks


a screencapture video of breakpoint sequence

May i got it with retriggerable delay.

I resolve the issue by setup different and better logic by your advice.
Thanks

It seem solved but not. Is strange. If i move the mouse slowly it works if i move fast the box on click on another button, disappear. I don’t know