docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FontUpdateTracker

    Utility class that is used to help with Text update.

    Inheritance
    object
    FontUpdateTracker
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)