Search Unity

Bug Screen.width and height not correctly set during Awake

Discussion in 'Linux' started by Chaoseiro, Sep 19, 2015.

  1. Chaoseiro

    Chaoseiro

    Joined:
    Aug 28, 2013
    Posts:
    40
    It seems that Screen.width and Screen.height are not correctly set during Awake functions, but can be used during Start functions, this is the size reported during Awake() function:
    Screen Size: 908, 1006
    During Start() (same project of course):
    Screen Size: 906, 510

    As you can see in the following screenshot, the size reported during Start() is the correct one: