Search Unity

Input.touches Moved

Discussion in 'Scripting' started by johnyfoxter, Nov 24, 2013.

  1. johnyfoxter

    johnyfoxter

    Joined:
    Nov 3, 2013
    Posts:
    21
    Hello,

    I need detect TouchPhase.Moved on Android. But if I move a finger quickly so touch.phase is not TouchPhase.Moved but
    touch.phase == TouchPhase.Began.
    Why_?

    Code (csharp):
    1.  
    2. foreach (Touch touch in Input.touches)
    3.             {
    4.                 if (touch.phase == TouchPhase.Moved )
    5.                 {
    6.                     touchDeltaPosition += touch.deltaPosition;
    7.                   ...
    8.  
    9.                 }
    10.