15 lines
309 B
C#
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); // 设置目标帧率
|
|
}
|
|
}
|
|
|