Using Button with EnhancedTouch

Hi,

While using the EnhancedTouch feature to implement a floating joystick, I noticed that now I need to hit my UI buttons two times to trigger the event.

Apart from hadin the EnhancedTouch api call to a dedicated script, I haven’t changed the way my click event are supposed to be triggered :

Is there any extra setting that I miss ?

I know this is a bit of an older post, but -

UI button onClick doesn’t really work well with mobile touch APIs. The workaround that I’ve had going for my project is using a collider and checking if the touch position (usually using rays so I get the “world” touch position) collides with the given mesh. However - this is really only necessary if you care about the length of a touch or any of the other API params.

For a button, you can just use OnMouseDown and it should work on mobile.