1.7 + build for iphone4:touchposition (max) is 960 or 480?

sorry guys, i hope someone can help me out:

  • i dont have an iphone 4 to find out myself, so the question is:

when building with unity iphone 1.7 and running the app on iphone 4, will a touch in the right top corner return:

  • x:960, y: 640
    OR
  • x: 480, y:320

so, was the “density” of the touchscreen also increased?
what will unity return for a touch?

i need to know the position of the touch, and if necessary will code a swith depending on screen resolution…

looking forward to your help :wink:
Thanks,
thomas

Hi Thomas
nice to see another fellow from Vienna using unity for iPhone Games.
Regarding your question:
the touchposition reported actually has nothing to do with the actual touchscreen-density. It always reports the actual (screen)pixel-position where the finger(s) is(are) touching the screen.

hi josef,

thanks for your reply - very much appreciated!

ok, understood.

just to be absolutely sure - do i get it right: when my game runs on iphone4, and user touches top right corner, the result will be something close to x: 960, y: 640.
right?

yes, good to see that i m not the only unity-dev in wien (angeblich eine weltstadt :wink:

greetings, thomas

…in that case, how do existing apps coded for 320x480 reolution run on iPhone 4? Does this mean they don’t work?