mirror of
https://github.com/BobbyRafael31/Unity-MazeRunner-Pathfinding-Visualizer.git
synced 2025-08-12 08:42:21 +00:00
14 lines
329 B
C#
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;
|
|
}
|
|
}
|