Publisher
lupodharkael
FPS Label
Godot asset to show the frame rate of your games.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
Godot Fps Label
Godot asset to show the frame rate of your games.
This document uses the format of the official Godot docs.
That is type name for variables and return_type name(type name) for functions.
Method list
void set_position(Position pos)
Set the position type, if you choose Position.NONE the label won't be forced to a fixed position. If you set other of the defined values in Position.
void update_position()
This is called every time you resize the viewport and it is called inside set_position(), it updates the position of the Label based on the defined Position enum.
Enum
Position:
- TOP_LEFT
- TOP_RIGHT
- BOTTOM_LEFT
- BOTTOM_RIGHT
- NONE
Properties
int margin
The margin of the label in pixels.
Label label
Direct reference to the active Label node.
Position position
Holds the value of the enum Position defined by the user.
Asset usage
- Add a copy of
FPSLabel.gdto your game. - Add a
FPSLabelnode to your scene.