BessereTests/addons/besseretests/src/editorbutton.gd

10 lines
245 B
GDScript3
Raw Normal View History

2024-03-28 05:37:29 +01:00
@tool
extends Button
func _ready() -> void:
get_parent().move_child(self, get_parent().get_child_count()-2)
func run_tests():
print("Starting tests")
EditorInterface.play_custom_scene("res://addons/besseretests/scenesrc/runtimescene.tscn")