Skip to content

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

@thatgreatAlice

Description

@thatgreatAlice

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions