1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using UnityEngine.UI;
- public class UpdateFont : MonoBehaviour
- {
- // Start is called before the first frame update
- void Start()
- {
- StartCoroutine(UpdateFontAsset());
- }
- IEnumerator UpdateFontAsset()
- {
- while(!SetWebGLText.webglfont)
- {
- yield return null;
- }
- this.GetComponent<Text>().font = SetWebGLText.webglfont;
- }
- }
|