Is it possible through code to return the size of an area? I have GUILayout.BeginArea with a GUIStyle appended to it. It already positions itself in the middle of the screen regardless of the scaling or size of the screen but what I would like to do is find out the size of the image that is on that GUIStyle and dynamically populate that into GUILayout.BeginArea rather then have it hard coded in so I can swap backgrounds easy even if they are different size.
Any Ideas?