This commit is contained in:
2022-11-11 13:42:40 +01:00
parent bb12d1db31
commit d8d3fbca59
6 changed files with 770 additions and 261 deletions

16
Assets/Scripts/fps.cs Normal file
View File

@@ -0,0 +1,16 @@
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();
}
}