Summary
Calls
UnityEngine.GUIStyle.CalcMinMaxWidth(UnityEngine.GUIContent,System.Single@,System.Single@) and returns the max width.- Assembly
- Kybernetik
.InspectorGadgets .Editor .dll - Namespace
- InspectorGadgets
.Editor - Containing Type
- IGEditorUtils
Syntax
public static float CalculateWidth(this GUIStyle style, string text)
Remarks
This method uses the
InspectorGadgets.Editor.IGEditorUtils.TempContent(System.String,System.String).Parameters
| Name | Type | Description |
|---|---|---|
| style | GUIStyle | |
| text | string |
Return Value
| Type | Description |
|---|---|
| float |