유니티 C# 프레임 체크 Fps Check 간단 사용법


유니티 C# 프레임 체크 Fps Check 간단 사용법

using System.Collections; using System.Collections.Generic; using UnityEngine; public class FpsCheck : MonoBehaviour { float deltaTime = 0.0f; void Update() { deltaTime += (Time.unscaledDeltaTime - deltaTime) * 0.1f; } void OnGUI() { int w = Screen.width, h = Screen.height; GUIStyle style = new GUIStyle(); Rect rect = new Rect(0, 0, w, h * 2 / 100); style.alignment = TextAnchor.UpperLeft; style...


원문링크 : 유니티 C# 프레임 체크 Fps Check 간단 사용법