mycj_demo/mycj/Assets/communal/FrameRateManager.cs
2024-12-02 14:09:47 +08:00

15 lines
309 B
C#

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