Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

GUIStyle.CalcHeight

Switch to Manual
public float CalcHeight(GUIContent content, float width);

Parameters

Description

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