유니티 FPS
[유니티] FPS 표기
[Header("[Fps Option]")] public int textSize = 48; private float _fpsTime; private void OnGUI() { int w = Screen.width; int h = Screen.height; GUIStyle style = new GUIStyle(); Rect rect = new Rect(20.0f, 0, w, h * 0.02f); style.alignment = TextAnchor.UpperLeft; style.fontSize = textSize; style.normal.textColor = Color.white; float msec = _fpsTime * 1000.0f; float fps = 1.0f / _fpsTime; string te..