Hi,
I’m trying to import textures and meshes from an external directory through an editor plugin. I’ve managed to achieve this by using the FAssetToolsModule’s function ImportAssets. Now I’m trying to improve the import times by changing texture settings like MipGenSettings and CompressionSettings. I’ve two specific questions:
-
Is it possible to change these settings BEFORE invoking the call to ImportAssets ? I’ve tried doing something like the following, but it didn’t quite work:
UTextureFactory * TextureFactory = ConstructObject(UTextureFactory::StaticClass());
TextureFactory->MipGenSettings = TextureMipGenSettings::TMGS_NoMipmaps;
TArray<UObject*> ImportedAssets = AssetToolsModule.Get().ImportAssets(FileNames, DestPathTexture, TextureFactory); -
If the above isn’t possible, then can we change the above mentioned settings through code (in the same way we change them through the Editor) ?. I’ve been unable to find the right class/object/method to update these.