- Home /
Loading JSON in Unity 3d
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 :)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612110040im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Json file not found after the Build... Help 1 Answer
jSON data error Unity3d 0 Answers
LitJSON android problem 1 Answer
Accesing StreamingsAssets in android (LitJson) 1 Answer
How to implement LitJSON? 2 Answers