Setting texture MipGenSettings to NoMipMaps at runtime ?

Hello,

I’m importing some texture from files (jpg/png) at runtime but when i try to use them i get this message in PIE and it freezes in standalone:

NoMipMapsNeeded.jpg

Very easy to fix for any texture inside the editor, but anyone knows how i can do this with a texture created at runtime from a random file ?

Thanks
Cedric

Silly me :slight_smile:

MipGenSettings ARE available at runtime:


MyTexture->MipGenSettings = TextureMipGenSettings::TMGS_NoMipmaps;

Problem solved !
Cheers
Cedric

■■■■ i spoke too soon.

It is enclosed in an #if WITH_EDITORONLY_DATA so it’s editor only, it won’t package.

So back to my first question, how do i create a texture with no mipmap in game ?

If anybody has any idea…

Thanks !
Cedric

Well, after many trials/errors, those ones are available at runtime and seem to be doing the job:


MyTexture->MipLoadOptions = ETextureMipLoadOptions::OnlyFirstMip;
MyTexture->LODGroup = TextureGroup::TEXTUREGROUP_UI;


Cheers
Cedric