Cute_demon_attacks/meng_yao/Assets/communal/FrameRateManager.cs
2024-12-25 23:35:36 +08:00

15 lines
307 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FrameRateManager : MonoBehaviour
{
public float globalFrameRate = 60; // 设置的目标帧率
void Start()
{
Application.targetFrameRate = Mathf.RoundToInt(globalFrameRate); // 设置目标帧率
}
}