Skip to content

hamdanbasri/FPSDisplayForUnity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FPS Display For Unity

Logo

A simple code to display the FPS in your game.


Table of Contents
  1. About
  2. Functions
  3. Getting Started
  4. Example
  5. Contact

About

Made with Unity C# Beginner
Ever wondered how you could display the FPS counter on your screen?
This code is here just to do that.

Functions

  • Display your game fps on a text.
  • Overwrite font color and font size.

Getting Started

Visitors

  • 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.

Example

Sample

As simple as attaching the script on a GameObject with a TextMeshPro component.


Variable Annotation
Enable Font Settings If enable, the default font settings will be overwritten with the preset Font Properties
Font Color Set the font color
Font Size Set the font size

Contact

Twitter LinkedIn

(back to top)

About

A simple code to display the FPS in your game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages