using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FPSShow : MonoBehaviour {
private void OnGUI()
{
string text = string.Format(" FPS:{0}", 1.0f / Time.smoothDeltaTime);
GUIStyle font = new GUIStyle();
font.fontSize = 40;
GUI.Label(new Rect(0, 0, 200, 200), text, font);
}
}