Skip to content

Instantly share code, notes, and snippets.

@mstevenson
mstevenson / Fps.cs
Last active February 2, 2025 22:41
An accurate FPS counter for Unity. Works in builds.
using UnityEngine;
using System.Collections;
public class Fps : MonoBehaviour
{
private float count;
private IEnumerator Start()
{
GUI.depth = 2;