Files
Unity-MazeRunner-Pathfindin…/Assets/Scripts/FrameLimiter.cs
Bobby Rafael df18c63766 Initial commit
2025-04-29 19:52:06 +07:00

14 lines
329 B
C#

using UnityEngine;
public class FrameLimiter : MonoBehaviour
{
// Start is called before the first frame update
[SerializeField] private int frameRate = 60;
void Start()
{
// Set the target frame rate to 60
QualitySettings.vSyncCount = 0;
Application.targetFrameRate = frameRate;
}
}