Hello, I’m new to unity 3d. I’ve already created a sample.json file with these data in it:
{
"levelName": "Bottoms Up",
"objectName":
[
{
"Hands",
"Hoop",
"Ball"
}
]
}
My problem is, how can I load it in Unity 3d? I’m using this code
JsonData jsonLevel = JsonMapper.ToObject(“ButtomsUp.json”);
but I know that it’s not kinda correct.
I want to load the info in the JSON file into unity 3d, and use the variables in that file to my game.
I’m using LitJSON btw.
I hope you can help me