22 lines
459 B
GDScript3
22 lines
459 B
GDScript3
|
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
|
||
|
|