Screen.height returns size of the scene view!?

I’m working some code that is executed in-editor (while not playing), and I’ve noticed that when not playing, Screen.height, as well as Camera.main.pixelHeight returns the height of the scene view rather than the game view. This is causing real problems previewing in the game view as you can imagine.

Is there another technique I’m missing that will return the size of the game view while in edit mode? Otherwise I may be looking at a bug report?

NOTE: This is with Unity iPhone. I’ll test with 2.5 next. EDIT: Yep, same with 2.5.

I would file a bug report, I did soon after 2.5 was released.

It shows up in other situations as well, such as the GUI Layout facilities using the entire editor window as a starting point for it’s dimensions, instead of the defined game window size/aspect ratio.