Label.GetPreferredValues
Declaration#
public virtual Vector2 GetPreferredValues(string text)Parameters#
| Name | Description |
|---|---|
| text | Text to display |
Description#
Get the preferred size of a label
Usage#
Example
using NullSave.GDTK;using UnityEngine;
public class CodeSample : MonoBehaviour{
public void ExampleMethod(Label target, string other) { Vector2 result = target.GetPreferredValues(other); }
}