Is there a double click manipulator?

Hello Everyone.

I want to create buttons that can be clicked and double clicked. This is for an editor tool UI and I am using the UI Toolkit.

We already have the Clickable manipulator that can be use to detect clicks on visual elements. I am wondering in anything similar exist for double clicking.

What I need is to set a click and a double click callback but not to execute both. When the element it clicked I need to wait a little bit to see if a second click is coming and, if it does execute the double click callback and if it doesn’t execute the single click callback.

Of course I can script this myself. But I would be surprised if this feature is not in the toolkit already. But I couldn’t find it. Does anything like this already exist?

Thanks.

Have a look at the ManipulatorActivationFilter:

1 Like