Hi, I create two user widgets, one for the main UI of game, and the other for one button on the UI. I set up the OnTouchStarted/OnTouchMoved/OnTouchEnded events in the second user widget to enable touch callbacks. However, OnTouchStarted does not fire when I use mouse to click on it but the other two events work as expected.
Each user widget has a canvas, and I use overlays to instantiate and encapsulate the second user widgets.
The second user widget simply contains a button and some icons and images. Any event of the button is not set, and only the user widget’s own OnTouchStarted/OnTouchMoved/OnTouchEnded events are overriden.