8 lines
339 B
GDScript
8 lines
339 B
GDScript
extends 'res://tests/unitbase.gd'
|
|
|
|
func test_root() -> void:
|
|
var children_active: Array[String] = []
|
|
for child in get_tree().root.get_children(): if child.name != "RuntimeScene" and child.name != name: children_active.append(child.name)
|
|
|
|
if children_active.size() == 0: rok()
|
|
else: rerror("There are still children active in /root/")
|