Hi,
I like to keep a texture file a 4k for processing purposes. Although I override the import setting via AssetPostprocessor, it still gets scaled down.
The following is inside AssetPostprocessor::OnPreprocessTexture
TextureImporter importer = assetImporter as TextureImporter;
importer.textureType = TextureImporterType.Advanced;
importer.textureFormat = TextureImporterFormat.RGBA32;
importer.npotScale = TextureImporterNPOTScale.None;
importer.wrapMode = TextureWrapMode.Clamp;
importer.maxTextureSize = 8192;
importer.mipmapEnabled = false;
importer.isReadable = true;
Org. texture is 4096 x 3072. It get’s scaled by half. I am on MacbookAir but SystemInfo.maxTextureSize reports that 4k texture should be fine.
Any idea why it doesn’t work?
thx