Beispiel #1
0
 public void ClearAssetCache()
 {
     TextMeshProFontAssetCache.GetOrCreateAssetCache <TextMeshProFontAssetCache>().ClearAssetCache();
 }
Beispiel #2
0
 public void UpdateAssetCache()
 {
     TextMeshProFontAssetCache.GetOrCreateAssetCache <TextMeshProFontAssetCache>().UpdateAssetCache();
 }
 public void SaveAssets()
 {
     TextMeshProFontAssetCache.GetOrCreateAssetCache <TextMeshProFontAssetCache>().SaveAssets();
 }
Beispiel #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)));
 }