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

10 lines
240 B
GDScript

extends StaticBody3D
@onready var label: Label3D = $Label
@export var text = "Default"
func set_entity_name(text):
assert(label != null, "Entity has to be added to the scene tree")
label.text = text.replace(".", "\n")
self.text = text