We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 834af8e commit 781362aCopy full SHA for 781362a
Demo/API_V2/Assets/API/Render/Render/Render.cs
@@ -15,19 +15,22 @@ private void Start()
15
// 测试 API
16
protected override void TestAPI(string[] args)
17
{
18
- setPreferredFramesPerSecond();
+ setFPS();
19
}
20
21
- public void setPreferredFramesPerSecond() {
22
- WX.SetPreferredFramesPerSecond(50);
+ public void setFPS()
+ {
23
+ Application.targetFrameRate = 30;
24
25
- public void loadFont() {
26
+ public void loadFont()
27
28
var font = WX.LoadFont("TencentSans-W7.subset.ttf");
29
Debug.Log(font);
30
31
- public void Destroy() {
- WX.SetPreferredFramesPerSecond(60);
32
+ public void Destroy()
33
34
+ Application.targetFrameRate = 60;
35
36
0 commit comments