Hello everybody, I really need help to make touch works in my project.
My project is for windows, I already know how to make buttons in my UI and it is great
{
VisualElement ButtonA= root.Q(“name”);
ButtonA.RegisterCallback((e) => Method());
}
but it only works when I click with the mouse, I can not interact with touch inputs.
I downloaded the UI-toolkit sample (1.0.0- preview.18 , my unity’s version is 2020.3.24f, I don’t know if it is the problem) but in the file “TouchMove.cs” I only see the same way as I already did.
There is no example scene in the UI-toolkit sample so maybe I made a mistake by creating a new scene and trying the “Events_TouchMove” visual tree asset.
I did not mention it but I tried in play mode and build. I hope someone as a solution for me, thanks for reading.