AnimancerGUI.

CalculateLabelWidth(string) Method

Summary

Calls UnityEngine.GUIStyle.CalcMinMaxWidth(UnityEngine.GUIContent,System.Single@,System.Single@) using UnityEngine.GUISkin.label and returns the max width. The result is cached for efficient reuse.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Containing Type
AnimancerGUI

Syntax

public static float CalculateLabelWidth(string text)

Parameters

Name Type Description
text string

Return Value

Type Description
float