Improved UI

This commit is contained in:
2024-02-12 12:38:31 +01:00
parent 019d382abd
commit d8d0c690bd
4 changed files with 43 additions and 27 deletions

View File

@ -1,6 +1,9 @@
extends DebugLabel
@export var monitor: Performance.Monitor
@export var multiply := 1.0
@export var precision := 0.1
@export var suffix := ""
func _process(_delta):
text = str(Performance.get_monitor(monitor))
text = str(snapped(Performance.get_monitor(monitor) * multiply, precision)) + suffix