Search Unity

setting Screen.orientation manually freezes touch input position

Discussion in 'iOS and tvOS' started by edwon, Mar 23, 2019.

  1. edwon

    edwon

    Joined:
    Apr 24, 2011
    Posts:
    266
    if I'm detecting a touch already, tracking it's position via Input.touchs[0].position for example, and then set Screen.orientation
    (in my case from AutoRotation to Portrait)
    the touch input position values simply freeze, I'm still moving my finger but the touch input position stays where it was when I set Screen.orientation

    This is a Unity bug I believe. Found old posts about it. This sounds similar for example: https://forum.unity.com/threads/problem-with-changing-screen-orientation.274056/