- Home /
This question was
closed Jan 17, 2020 at 01:07 AM by
vnlsnmac20033 for the following reason:
Problem is different to what was described
Question by
vnlsnmac20033 · Jan 17, 2020 at 12:02 AM ·
importer
How do I set my TGA asset to readable and uncompressed on import
I have the following code already which works fine for PNGs and JPEGs:
void OnPreprocessTexture()
{
TextureImporter textureImporter = (TextureImporter)assetImporter;
textureImporter.isReadable = true;
textureImporter.textureCompression = TextureImporterCompression.Uncompressed; // CAUTION - High memory use
Debug.Log("Imported texture set to uncompressed and readable");
}
However when I import a TGA it isn't noticed although from what I know it is a valid texture. It is obviously treated differently to PNGs and JPEGs. How do I set the TGA to readabale and uncompressed?
Comment
Follow this Question
Related Questions
Importing Character with animation into unity? 1 Answer
How do I avoid reimporting assetBundles when upgrading unity? 0 Answers
Configuring Avatar 1 Answer
Texture importer, changing original file size 0 Answers
Scaling between fbx and Unity 2 Answers