Files
UltimateFishing/Assets/Scripts/Assembly-CSharp/RefreshFontSize.cs
2026-02-21 16:45:37 +08:00

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;
}
}
}