uced
(uced)
1
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:
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
uced
(uced)
2
Silly me
MipGenSettings ARE available at runtime:
MyTexture->MipGenSettings = TextureMipGenSettings::TMGS_NoMipmaps;
Problem solved !
Cheers
Cedric
uced
(uced)
3
■■■■ 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
uced
(uced)
4
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