Hi, how can I see if there are two touches touching one GUITexture, I know about touchCount but I think that wouln’t work since I want the touches to be only in a single texture and not over all the screen, my objective is to call a function when there are two touches touching a GUITexture
First you check to see that Input.touchCount == 2. Then you cycle through each touch and use GUITexture.HitTest() to see if the touch is inside the GUITexture.
if (Input.touchCount == 2) {
if (guiTexture.HitTest(Input.touches[0].position) && guiTexture.HitTest(Input.touches[1].position)) {
Debug.Log("Both Fingers are hitting the GUITexture");
}
}