Table of Contents
Ever wondered how you could display the FPS counter on your screen?
This code is here just to do that.
- Display your game fps on a text.
- Overwrite font color and font size.
- Open Unity and add a Canvas to the scene.
- Create a Text - TextMeshPro as a child of the Canvas and rename it to FPSDisplayText.
- Attach the FPSDisplay.cs script to the FPSDisplayText.
- Press Play in your editor and all the FPSDisplayText will now display your in game fps.