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


    Aug 28, 2013
    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: