Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    Dismiss Notice

Input GetTouch not proper

Discussion in 'Tizen' started by unity2, Aug 2, 2017.

  1. unity2

    unity2

    Joined:
    Jan 10, 2013
    Posts:
    14
    I am using Unity 5.6.2.
    Input.GetTouch(0).position and Input.GetTouch(1).position giving same position. Does anyone facing the same issue?
     
  2. sukwon-suh

    sukwon-suh

    Joined:
    Mar 31, 2015
    Posts:
    81
    Hello

    I tested code below with Unity 5.6.2f1, and it works fine on Z2, Z4 model

    Code (CSharp):
    1.  for (int i = 0; i < Input.touchCount; i++) {
    2.             Debug.Log (i + " " + Input.GetTouch(i).position);
    3.         }