How do I Import an Entity's JSON in code?


Hey there!
I want to import the JSON for an entity using code. Similar to what addentity() function does, but for JSON instead of FBX.

Does anyone have an example?


Maybe I’m wrong, but I think that the content of the json is what you need to pass directly in the property parameter of addentity(). (you might have to modify a couple of things in the json, like the ‘position’.)


Hi Alezia, thanks for the response. Yes that’s we we tried and it worked!