I'm following the Save/Load tutorial from document.
https://docs.godotengine.org/en/stable/tutorials/io/saving_games.html
I save player's location to dictionary like this:
var player_info = {"location": Vector3.ZERO,}
func _process(delta):
player_info.location = self.global_transform.origin
My JSON file looks like this:
"location":"(-2.916666, 0.998771, 0)"
Then my Load function:
var new_object_location = node_data["location"]
new_object.transform.origin = new_object_location
I read you can use str_to_var / var_to_str for "location" and load it back as Vectors but I tried unsuccessfully to use it.
info: https://godotengine.org/qa/133608/how-to-save-load-vector2
Can anyone show me how to use it?