Created
November 15, 2022 23:22
-
-
Save psql/e616f1a2f7e5b073d8ad37d4635ea835 to your computer and use it in GitHub Desktop.
Set Target Frame Rate in unity
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class TargetFrameRate : MonoBehaviour | |
{ | |
void Start() | |
{ | |
QualitySettings.vSyncCount = 0; | |
Application.targetFrameRate = 60; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment