This is the old Animancer v7.4 documentation. Click here for the latest version.

AnimancerGUI.

CalculateWidth(GUIStyle, string) Method

Summary

[Animancer Extension] Calls UnityEngine.GUIStyle.CalcMinMaxWidth(UnityEngine.GUIContent,System.Single@,System.Single@) and returns the max width.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Containing Type
AnimancerGUI

Syntax

public static float CalculateWidth(this GUIStyle style, string text)

Parameters

Name Type Description
style GUIStyle
text string

Return Value

Type Description
float