so im simply just trying to have the game automatically save when the application is closed. like pressing the x button on the window. but i dont think the data is being saved
extends Control
func _on_tree_exited() -> void:
print("FFFFFFFFF")
SaveData.save()
this script is also linked to the root control node btw. any feedback appreciated
Godot Version: 4.4.1