Last active
March 28, 2019 22:46
-
-
Save drewcassidy/aa22c87dfce6aa3da54b48596c9a8e1f to your computer and use it in GitHub Desktop.
Stops Unity from compressing textures on import (must reset any existing texture imports to take effect, or group select and set compression to "none"). Drag this file into Assets/Plugins/Editor (make the folders if they don't exist already)
This file contains hidden or 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 UnityEditor; | |
using UnityEngine; | |
public class NoDXT : AssetPostprocessor | |
{ | |
void OnPreprocessTexture() { | |
var importer = (TextureImporter)assetImporter; | |
importer.textureCompression = TextureImporterCompression.Uncompressed; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment