TinyJSON icon indicating copy to clipboard operation
TinyJSON copied to clipboard

Unity Engine Vector 3 structure does not convert to JSON properly(missing Type) and prevents converting from json to object

Open thatgreatAlice opened this issue 1 year ago • 0 comments

Hello, I am trying to turn into json a class with a bunch of properties and a dictionary. That dictionary uses Vector 3 as its key.

I had noticed that when I try to make this class into a json, and then try to convert that json into a file, I get this error in unity. Captura de pantalla (656)

When looking at the json to see if anything was wrong, I noticed that the json dictionary section doesn´t store the type of the key being used and thus doesn´t know how to convert it back from a string into a Vector3.

Captura de pantalla (657)

Is there any way to fix this?

thatgreatAlice avatar Feb 22 '24 13:02 thatgreatAlice