Use Datasmith in my plugin

I am developing a custom plugin to import assets of different types like gltb,fbx into unreal . I came across the Datasmith plugin which is used to import gltf files. I was thinking If I can re use the DataSmith interfaces in my plugin to import these assets

It should be possible to access some of the Datasmith glTF function from your own plugin, but you could probably just trigger some datasmith import using the same functions that are exposed to blueprints.

Please be aware that we are going to phase out Datasmith glTF import and use Interchange framework instead as of 5.1. So I would try to interface with this one instead.

Yes I was able to import glm files using the Datasmith Importer . But is it possible to just add it to the content browser , rather than adding it to the scene . I think such customization is not available
What is Interchange framework ? Is the GltfImporter ?

The interchange framework is new in 5.1, you can use it to import into scene or just into content folder. It will be in par with glTF importer and DS glTF importer.

In 5.0, if you use the glTF importer plugin you can also import in both scene or content folder, it was having less features than the DS plugin.

Yes but the I guess the current gltfimporter does not support import of materials and mesh which the Datasmith does support

That is correct, “glTF importer” for version 5.0 and prior supports less features than the DS plugin

@UE_FlavienP I am trying to use GLTFImporter , but it seems its not exported …so how do I use it my plugin ?

you could try to import through an asset import task?

Here is the blueprint sample, you should be able to access the corresponding C++ function in your plugin.
Unless necessary I would use high level import function instead of accessing core gltf importer function

Asset import task: