Screen.width not returning the right values

My computer screen resolution is 1920x1080. So if I use Screen.width, it should return 1920, right?

However, when I enter it into my script, it returns 416 instead. Any one has any idea why this is so?

boxWidth = Screen.width*0.25f, //Width of GUI background box

This is suppose to be the width of my GUI box, but it shows 104 instead of the expected value, 480.

Screen.width returns the width of the game’s view and not the actual screen itself.

Probably because the size of your Game view is in Free Aspect and it isn’t being maximized on play.