How can i get the touchscreen coordinates?

I need to create a touch interface setup to move my character and enable the touchscreen navigation in order to rotate the camera touching the rest of the screen, the thing is that the the touch interface overlaps with the touchscreen navigation controls (by default, the entire screen).

I’d like to restrinct the area of the touchscreen controls by getting the X,Y coordinates and try somehow make the game do NOTHING while the coordinates are the same that in the touch interface.

Any ideas?

I used a 3rd party asset called “UltimateTouchComponents” which feature priorities for each control element to solve this issue. But I’m not sure how it was actually achieved. it appears to be a fairly complicated setup.

I’ve solved it, let you know how: