Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

GUIStyle.CalcMinMaxWidth

Switch to Manual
public function CalcMinMaxWidth(content: GUIContent, out minWidth: float, out maxWidth: float): void;

Parameters

Description

Calculate the minimum and maximum widths for this style rendered with content.

Used by GUILayout to handle word-wrapping elements correctly.