Hi,
I know how create a texture from file with ImageWrapperModule and UTexture2D::CreateTransient and then assign it to a MID.
- …
Texture = UTexture2D::CreateTransient(SizeX, SizeY, Format);
FTexture2DMipMap& Mip = [Texture]->PlatformData->Mips[0];
void* Data = Mip.BulkData.Lock( LOCK_READ_WRITE );
FMemory::Memcpy( Data, DataReadFromFile, DataSize );
Mip.BulkData.Unlock( );
Texture->UpdateResource();*
Now, how can I auto generate mips for the texture?
Thanks.