Load textures without creating mip maps?

I have a very low quality settings option, and it reduces the texture quality of all textures to 1/8 resolution:

I use this code to dynamically load textures:

if (File.Exists(filePath))     {
   fileData = File.ReadAllBytes(filePath);
   tex = new Texture2D(2, 2);
   tex.LoadImage(fileData); //..this will auto-resize the texture dimensions.
   
}

How do I disable mip maps from being created?

Thank you

Nevermind, it was very simple, you are allowed to pass a boolean to disable mipmaps:

var texture = new Texture2D( 2, 2, TextureFormat.RGBA32, false);

:slight_smile:

1 Like