immersive-home/app/content/ui/menu/edit/device/device.gd
2024-03-16 01:16:08 +01:00

9 lines
193 B
GDScript

extends Node3D
@onready var button = $Button
@export var id: String = "0"
func set_device_name(text):
assert(button != null, "Device has to be added to the scene tree")
button.label = text