Skip to main content

UILabel_UnityText.GetPreferredValues

Declaration#

public virtual Vector2 GetPreferredValues(string text)

Parameters#

NameDescription
textText to display

Description#

Get the preferred size of a label

Usage#

Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
    public void ExampleMethod(UILabel_TMP target, string other)    {        Vector2 result = target.GetPreferredValues(other);    }
}