mycj_demo/mycj/Assets/communal/FrameRateManager.cs

15 lines
309 B
C#
Raw Normal View History

2024-12-02 14:09:47 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FrameRateManager : MonoBehaviour
{
public float globalFrameRate = 100f; // <20><><EFBFBD>õ<EFBFBD>Ŀ<EFBFBD><C4BF>֡<EFBFBD><D6A1>
void Start()
{
Application.targetFrameRate = Mathf.RoundToInt(globalFrameRate); // <20><><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>֡<EFBFBD><D6A1>
}
}