I am currently working on a plugin that needs to create actors based on OSG scene descriptions and place them into the editor (no runtime spawning). For that purpose, I have created an Actor that parses a given JSON document and composes the scene within itself.
A JSON node could look something like this:
{
"Name" : "Monkey",
"Type" : "Mesh",
"Position" : [0.0,0.0,0.0],
"Rotation" : [0.0,0.0,0.0],
"Scale" : [0.0,0.0,0.0],
"ResourcePath" : "C:/MyModels/Monkey.fbx",
"Children" : []
}
Obviously, Unreal needs an existing uasset to create StaticMeshComponents. So previously, I have just chosen a value for “ResourcePath”, which would point to an existing asset in my project. Since I am dynamically parsing these descriptions though, I would like to be able to import new assets from within my plugin.
Is there a way to use the import action of the Content Browser, or some similar functionality that would help me do this?
Any help would be appreciated!!