using UnityEngine; using UnityEngine.UI; public class RefreshFontSize : MonoBehaviour { public int VRSize = 16; private void Awake() { if (VRManager.IsVROn()) { GetComponent().resizeTextMaxSize = VRSize; } } }