I saw the document say vector2’s x axis is between 0 and 1.I have a question!Input.GetTouch(i).position is a vector2?right?But I saw Input.GetTouch(i).position.x is between 0 and 480(My mobile screen’s size)!Why?And how can I normalize it to vector2’s standard 0-1?
No, Vector2 is two floats, so x and y have the range of a single-precision float.
Vector2 x and y components are arbitrary floating-point numbers. A particular function will return values as documented for that specific function. To normalise a Touch position, divide x by Screen.width and y by Screen.height.