Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@drewcassidy
Last active March 28, 2019 22:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewcassidy/aa22c87dfce6aa3da54b48596c9a8e1f to your computer and use it in GitHub Desktop.
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)
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