Functional prototype
This commit is contained in:
5
core/tools/fps_label.gd
Normal file
5
core/tools/fps_label.gd
Normal file
@@ -0,0 +1,5 @@
|
||||
extends Label
|
||||
|
||||
|
||||
func _process(delta):
|
||||
text = str(Engine.get_frames_per_second()) + " FPS"
|
||||
21
core/tools/fps_label.tscn
Normal file
21
core/tools/fps_label.tscn
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://c6w6axh4l4w8d"]
|
||||
|
||||
[ext_resource type="Script" path="res://core/tools/fps_label.gd" id="1_i0we7"]
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer"]
|
||||
anchors_preset = 1
|
||||
anchor_left = 1.0
|
||||
anchor_right = 1.0
|
||||
offset_left = -69.0
|
||||
offset_bottom = 40.0
|
||||
grow_horizontal = 0
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 20
|
||||
|
||||
[node name="FPSLabel" type="Label" parent="."]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 20
|
||||
text = "120 fps"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
script = ExtResource("1_i0we7")
|
||||
Reference in New Issue
Block a user