Skip to content

Instantly share code, notes, and snippets.

@arkms
Created June 1, 2016 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arkms/9667af1f79f49288857f1213a89b89d3 to your computer and use it in GitHub Desktop.
Save arkms/9667af1f79f49288857f1213a89b89d3 to your computer and use it in GitHub Desktop.
Make all new texture has MipMaps disable. Remember save inside a 'Editor' folder
using UnityEngine;
using UnityEditor;
public class DisableAutoMipMaps : AssetPostprocessor
{
public void OnPreprocessTexture()
{
TextureImporter texture = assetImporter as TextureImporter;
texture.mipmapEnabled = false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment