LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

GUIStyle.CalcHeight

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

Description

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