In 5.6, the “Add multi Click Sequence Behavior” seems to only take two clicks and then it reverts back to beginning a sequence, so you can’t have sequences longer that two clicks. I’m pretty sure that’s not how it worked in 5.5. Also, even if this is somehow the intended behavior, “On Terminate Click Sequence” isn’t getting triggered after the second click so it definitely feels like a bug
Steps to Reproduce
- Create a Scriptable tool
- Add a “Add multi Click Sequence Behavior” node and connect events to it
- Test it in editor
- You’ll notice that every other click, the state of the node will go back to “On Begin Sequence Preview” and “Request Abort Click Sequence” stops being queried until the next click
Hi,
I tested out the “Add Multi Click Sequence Behavior” in 5.6 and wasn’t able to reproduce the behavior you described.
Could you please share a simple repro project example of this?
I had a simple setup with a bunch of print statements and “On Begin Sequence Preview” is not queried every other click after the sequence begins, it starts up again once the sequence ends.
“Request Abort Click Sequence” does not start until the sequence begins and does not stop being queried until the sequence is done for me.
Regards
Hi John,
Here’s a project, although it does pretty much what your project is doing, but mine behaves differently. It calls “On Begin Sequence Preview” until I click once, then it starts calling “request Abort Click Sequence”, but when I click a second time it starts calling “On Begin Sequence Preview” again and it stops calling “request Abort Click Sequence”. And “On Terminate Click Sequence” is not getting called when going back to “On Begin Sequence Preview”.
[Image Removed]
Ah, I noticed that On Next Sequence click needs to return true for the sequence to continue. But shouldn’t it call On Terminate if it returns false?
It looks like “On Terminate Click Sequence” is called when “Request Abort Click Sequence” returns true.
I think the key difference is that “On Terminate Click Sequence” tool tip says explicitly terminated.
So once “On Next Sequence Click” ends it doesn’t go into On Terminate.