I am not sure the option is available to you in datasmith.
Are you on 5.1 or higher? You should not use datasmith for glTF import anymore
I would thus use interchange instead: Box go to editor blueprint > Interchange import
-
Basically you need that code and to call the import scene if you want the import to spawn your gltf in the runtime application or the import asset if you want to just get assets and then you do the spawning yourself
-
If you do not mind that all you import (obj, fbx and gltf) got same remove degenerates options I would just replace the default pipeline for the asset/scene import with one that as remove degenerates enabled by default.
go and look for the pipeline asset (according to asset or scene) depending on your target import
-
make a copy in a custom folder
-
edit it to have remove degenerates at on by default
-
replace the pipeline in your default asset/scene import
Now any default interchange import into level will have remove degenerates toggle by default.
If you want to only switch for some format you can add some code to override the pipelines on import (see in 1) graph) and point to your custom pipeline instead of the default one.





