Class FontUpdateTracker
Utility class that is used to help with Text update.
Inherited Members
Namespace: UnityEngine.UI
Assembly: UnityEngine.UI.dll
Syntax
public static class FontUpdateTracker
Remarks
When Unity rebuilds a font atlas a callback is sent to the font. Using this class you can register your text as needing to be rebuilt if the font atlas is updated.
Methods
TrackText(Text)
Register a Text element for receiving texture atlas rebuild calls.
Declaration
public static void TrackText(Text t)
Parameters
Type | Name | Description |
---|---|---|
Text | t | The Text object to track |
UntrackText(Text)
Deregister a Text element from receiving texture atlas rebuild calls.
Declaration
public static void UntrackText(Text t)
Parameters
Type | Name | Description |
---|---|---|
Text | t | The Text object to no longer track |