Hi everyone, I’ve created a button in the canvas as a test to help me with another project I’m creating, which is always a test. I would very much like to know a method or function able to “activate”, when I press with my finger on the screen, only that part where the button is present, “excluding” the rest of the display, printing in debug.log, the message: "you have button pressed ". I have already tried with Input.touchCount and input.GetTouch () and also with Input.Touches ; the problem is that, by implementing them, when I touch the screen, the function I implement “acts” on the entire display. Clarification: these two tests are for android. Can anyone help me please? Thank you
I have found the solution. For more information: Unity touch and ui button - Stack Overflow . Here she is: