20 lines
329 B
GDScript
20 lines
329 B
GDScript
extends MeshInstance3D
|
|
|
|
@export var labelNode : String = ""
|
|
@onready var labelPaper = $labelPaper
|
|
|
|
|
|
func _ready() -> void:
|
|
add_to_group("RiddelNode")
|
|
if labelNode:
|
|
set_node(labelNode)
|
|
|
|
elif labelNode == "":
|
|
print("LabelNode nicht gesetzt.")
|
|
else:
|
|
pass
|
|
|
|
|
|
func set_node(node : String) -> void:
|
|
labelPaper.text = node
|