immersive-home/content/ui/menu/edit/device/device.gd
2023-11-26 03:06:31 +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