This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld49/game/util/SpatialLabel.gd

11 lines
201 B
GDScript

class_name SpatialLabel
extends Spatial
onready var label: Label = $SpatialLabelSprite/Viewport/Label
func _ready() -> void:
hide()
func show_text(text: String) -> void:
label.text = text
show()