Exemple #1
0
 public void ClearAssetCache()
 {
     TextMeshProFontAssetCache.GetOrCreateAssetCache <TextMeshProFontAssetCache>().ClearAssetCache();
 }
Exemple #2
0
 public void UpdateAssetCache()
 {
     TextMeshProFontAssetCache.GetOrCreateAssetCache <TextMeshProFontAssetCache>().UpdateAssetCache();
 }
 public void SaveAssets()
 {
     TextMeshProFontAssetCache.GetOrCreateAssetCache <TextMeshProFontAssetCache>().SaveAssets();
 }
Exemple #4
0
        protected override void Awake()
        {
            base.Awake();

            fontAssets = TextMeshProFontAssetCache.LoadAssetCache <TextMeshProFontAssetCache>();
        }
 private void Start()
 {
     fontAssets = TextMeshProFontAssetCache.LoadAssetCache <TextMeshProFontAssetCache>();
     StateSynchronizationSceneManager.Instance.RegisterService(this, new ComponentBroadcasterDefinition <TextMeshProBroadcaster>(typeof(TextMeshPro)));
 }