Files
findthesource/Assets/Scripts/fps.cs
2022-11-11 13:42:40 +01:00

17 lines
340 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class fps : MonoBehaviour
{
public TMP_Text fpsText;
// Update is called once per frame
void Update()
{
int current = (int)(1f / Time.unscaledDeltaTime);
fpsText.text = "Fps: " + current.ToString();
}
}