immersive-home/content/ui/device/device.gd

9 lines
204 B
GDScript3
Raw Normal View History

2023-11-11 19:17:25 +02:00
extends Node3D
2023-10-30 02:21:50 +02:00
2023-11-11 19:17:25 +02:00
@onready var label: Label3D = $Button/Label
@export var id: String = "0"
2023-10-30 02:21:50 +02:00
func set_device_name(text):
assert(label != null, "Device has to be added to the scene tree")
2023-11-11 19:17:25 +02:00
label.text = text