Hi,
I was wondering when touch support is going to be implemented into UIToolkit? I added a few buttons into my game and they work in the editor. However, when I build to my iOS device, the buttons are unresponsive.
root.Q("button-circle").RegisterCallback<MouseEnterEvent>(ev => GameManager.instance.SwitchShape(Shape.circle));
Thanks!
For touch use PointerEnterEvent not MouseEnterEvent.
Thanks for the hint! Unfortunately, there are some bugs with it.
If you use OnPointerDown, for some reason it will register twice and then, if you move the mouse while holding the mouse button down, it registers a third time.
I reported the bug. Here is a video of the issue: y04ofp
EDIT: Case #: 1287927
1 Like
Yeah I had some issues with mobile touch and rendering on some older devices. I decided its best to leave it alone for that right now. Got it working good for a card game done entirely with it and an inventory drag and drop system though.
1 Like