Files
findthesource/Assets/Scripts/menu/FrameRateSetter.cs
2023-09-27 23:15:38 +02:00

15 lines
292 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FrameRateSetter : MonoBehaviour
{
private void Awake() {
#if !UNITY_ANDROID || !UNITY_IOS
Application.targetFrameRate = 60;
#else
Application.targetFrameRate = 30;
#endif
}
}