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.CalcMinMaxWidth

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

Description

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

Used by GUILayout to handle word-wrapping elements correctly.