Two fingers touching

Hi. I recently started using Unity iPhone and I have a question, how can I detect two fingers touching the screen?

Thanks.

Never mind. I found this in the docs:

// Prints number of fingers touching the screen
function Update () {
    var fingerCount = 0;
    for (var touch : iPhoneTouch in iPhoneInput.touches) {
        if (touch.phase != iPhoneTouchPhase.Ended  touch.phase != iPhoneTouchPhase.Canceled)
            fingerCount++;
    }
    if (fingerCount > 0)
        print ("User has " + fingerCount + " finger(s) touching the screen");
}
1 Like