- Edited
So, a weird question. I have been using JSON to load/save my games because the dictionary is useful. But I have a problem. I have been trying to store a Vector2()
but it keeps returning as a string when I load it. I have debugged the variable and it does have two values in captions. I did sanitize it to the global using Vector2()
beforehand but all loads come back as a string of those two numbers in captions and not a vector. I am certain it's because it is storing as a string because that's the error code, which may be related to JSON. How do I parse this to a Vector2 when it stores/loads as a string?