21 lines
459 B
GDScript
21 lines
459 B
GDScript
extends Node
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(_delta):
|
|
pass
|
|
|
|
func getTags(selectedObject:Node):
|
|
var _tags: Array
|
|
if (selectedObject.has_meta("tags")):
|
|
_tags = selectedObject.get_meta("tags")
|
|
return _tags
|
|
else:
|
|
printerr("no tags inside %",selectedObject)
|
|
return _tags
|
|
|