Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

GUIStyle.CalcHeight

CalcHeight(content: GUIContent, width: float): float;
float CalcHeight(GUIContent content, float width);
def CalcHeight(content as GUIContent, width as float) as float

Description

How tall this element will be when rendered with content and a specific width.