22 lines
477 B
GDScript
22 lines
477 B
GDScript
extends Node3D
|
|
|
|
@export var message = "Test":
|
|
set(value):
|
|
$Label3D.text = value
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
self.get_viewport().get_camera_3d()
|
|
pass
|
|
|
|
|
|
|
|
func _on_action_button_pressed() -> void:
|
|
self.get_parent_node_3d().remove_child(self)
|
|
self.queue_free()
|