/// <summary>
 /// Function returning the Font Asset corresponding to the provided hash code.
 /// </summary>
 /// <param name="hashCode"></param>
 /// <param name="fontAsset"></param>
 /// <returns></returns>
 public static bool TryGetFontAsset(int hashCode, out TMP_FontAsset fontAsset)
 {
     return(MaterialReferenceManager.instance.TryGetFontAssetInternal(hashCode, out fontAsset));
 }
 /// <summary>
 /// Add new font asset reference to dictionary.
 /// </summary>
 /// <param name="fontAsset"></param>
 public static void AddFontAsset(TMP_FontAsset fontAsset)
 {
     MaterialReferenceManager.instance.AddFontAssetInternal(fontAsset);
 }
Example #3
0
 public static void ON_FONT_PROPERTY_CHANGED(bool isChanged, TMP_FontAsset font)
 {
     FONT_PROPERTY_EVENT.Call(isChanged, font);
 }