GUIStyle.CalcSize Manual     Reference     Scripting  
Scripting > Runtime Classes > GUIStyle
GUIStyle.CalcSize

function CalcSize (content : GUIContent) : Vector2

Description

Calculate the size of a some content if it is rendered with this style.

This function does not take wordwrapping into account. To do that, you need to determine the allocated width and then call CalcHeight to figure out the wordwrapped height.