2023-10-30 02:21:50 +02:00
|
|
|
extends StaticBody3D
|
|
|
|
|
|
|
|
@onready var label: Label3D = $Label
|
2023-10-31 23:15:33 +02:00
|
|
|
@export var text = "Default"
|
2023-10-30 02:21:50 +02:00
|
|
|
|
|
|
|
func set_entity_name(text):
|
|
|
|
assert(label != null, "Entity has to be added to the scene tree")
|
2023-10-31 23:15:33 +02:00
|
|
|
label.text = text.replace(".", "\n")
|
|
|
|
self.text = text
|