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

Find if windowed mode has been maximised

Discussion in 'Windows' started by indie_mike, Mar 20, 2019.

  1. indie_mike

    indie_mike

    Joined:
    Nov 7, 2016
    Posts:
    29
    Hey everyone,

    I am running into an issue where i am trying to detect when a user has maximised a unity window from windowed mode. I've tried comparing Screen.height / width against Screen.currentResolution but when maximising from windowed mode, Screen.height takes into account the task bar so it never reaches currentResolution.height.

    Is there a event or another way i can check to see if the user has maximised the window? I cant seem to find anything on the internet.

    Cheers
     
unityunity