I need the resulting Rect for a scrollview I have drawn with GUILayout.
I know you can use GUILayout.GetRect(...) to "reserve" the space for a single control like a Button--or more specifically for 1 piece of GUIContent--and then call the GUI equivalent with that Rect. But how do you find out how big your scrollview, or styled-BeginHorizontal() is? Even if I rewrite everything to GetRect() and GUI call, I still can't just union them all together because I'll need to clip it against the scroll view size, and I don't think you can get the size of the FlexibleSpace() either.
In case it matters, I need the Rect so I can test dropping items with drag and drop against the screen-space mouse point coords. That works fine already everywhere else, but I at least need a Rect.
Thanks in advance!