I just realized, that when I use Screen.height from within an editor window, it gives my not the actual space I have to draw the things inside.
The problem => the header bar is included as well in this calculation for the height!
I measured it to be around 22 pixels, on a Window 7 / Unity Pro setup. Probably this value differs with other setting?
Is there a constant or something that gives back that value?
asked Feb 10 '12 at 06:16 PM
To get the draw area of an editor Window, use EditorWindow.position. Don't be fooled by the name. It's a Rect that indicates the draw area.
Edit: Added some example code.