Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug Screen.width and height not correctly set during Awake

Discussion in 'Linux Editor' 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:
     
unityunity