Created
June 1, 2016 03:51
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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