I want to save the current scene to a .dat file, then load and open it when needed. Currently, I'm saving
get_tree().current_scene to the file, but I can't find a way to get the scene from that.
Edit: I've found a workaround, which is just to save the root node's path. I know that it won't work if the scene and root node have different names, but it works for now. I'd still like to know if there's a better way to do it, which is likely.