Is there anyway to detect iOS touches in only a certain portion of the screen? I know the obvious solution is to use a button instead of detecting a touch, but what if I want to do somehting like this:
function Update(){
if(Input.touchCount == 1){
transform.position.y += Input.touches[0].deltaPosition.y*.05;
}
}
But only if the player’s input is on the right side of the screen (so that any motion of the left side will be ignored)? Thanks