IGEditorUtils.

CalculateWidth(GUIStyle, GUIContent) Method

Summary

Calls UnityEngine.GUIStyle.CalcMinMaxWidth(UnityEngine.GUIContent,System.Single@,System.Single@) and returns the max width.

Syntax

public static float CalculateWidth(this GUIStyle style, GUIContent content)

Parameters

Name Type Description
style GUIStyle
content GUIContent

Return Value

Type Description
float