immersive-home/app/lib/globals/console.gd
2024-05-22 18:38:28 +02:00

17 lines
275 B
GDScript

extends Node
@onready var main = $"/root/Main"
@onready var console = $"/root/Main/Console"
func _ready():
await main.ready
main.remove_child(console)
func log(message):
print(message)
if console.get_parent() == null:
main.add_child(console)
console.log(message)