You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/D2D_Scripts/UI/FPSLabel.cs

12 lines
248 B
C#

using UnityEngine;
using D2D.Utilities;
namespace D2D.UI
{
public class FPSLabel : LabelBase
{
protected override float UpdateRate => .25f;
protected override string GetText() => $"{(1f / Time.deltaTime).Round()}";
}
}