mirror of
https://github.com/BobbyRafael31/Unity-MazeRunner-Pathfinding-Visualizer.git
synced 2025-08-13 08:52:21 +00:00
Initial commit
This commit is contained in:
13
Assets/Scripts/FrameLimiter.cs
Normal file
13
Assets/Scripts/FrameLimiter.cs
Normal file
@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user