Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug: IOS screen size is zero

Discussion in 'iOS and tvOS' started by juissi, Sep 15, 2020.

  1. juissi

    juissi

    Joined:
    Jul 13, 2015
    Posts:
    9
    In 2020.1.01f the Screen.width and height are 0 when call it in OnUpdate().

    In 2019.2.21f1 Screen size is still correct. Also with Android Unity 2020.1 Screen dimensions are correct.

    I couldn't find a workaround for the problem. Is it only in my project (actually more than 1 of them) or someone else has the same issue as well?
     
  2. juissi

    juissi

    Joined:
    Jul 13, 2015
    Posts:
    9
    My mistake in reading the screen size. Please ignore.