Manual     Reference     Scripting  
  
Scripting > Runtime Classes > GUIStyle Switch to Component   

GUIStyle.CalcScreenSize  

function CalcScreenSize (contentSize : Vector2) : Vector2

Description

Calculate the size of an element formatted with this style, and a given space to content.