16 lines
231 B
C#
16 lines
231 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class RefreshFontSize : MonoBehaviour
|
|
{
|
|
public int VRSize = 16;
|
|
|
|
private void Awake()
|
|
{
|
|
if (VRManager.IsVROn())
|
|
{
|
|
GetComponent<Text>().resizeTextMaxSize = VRSize;
|
|
}
|
|
}
|
|
}
|