Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2019.4.24f1
2020.3
2021.1
2021.2
Issue ID
1340615
Regression
No
Image is not compressed when changing the compression format in OnPostprocessTexture and reimporting
How to reproduce:
1. Open the attached project "TexBug.zip"
2. Change platform to Android
3. Select '1_vr_T1_001' in the Project View
4. Under Android import settings change the Format to something else
5. Right-click '1_vr_T1_001' in the Project View
6. Click reimport
Expected result: The texture reimports and is compressed in the ASTC 6x6 block format
Actual result: The texture reimports and is not compressed in the ASTC 6x6 block format
Reproducible with: 2019.4.28f1, 2020.3.11f1, 2021.1.10f1, 2021.2.0a19
Could not test with: 2018.4.34f1 (fails to reimport texture)
Workaround: Reimport the texture twice
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Text is pushed outside of the text box when creating a new Colors library in the Color Picker and entering the long string
- Shader Graph template list misaligns and becomes invisible while scrolling
- "Sort By..." icon is not visible in the "Create new Shader Graph Asset" window in the Light Editor theme
- "Unity SDF" font Asset from TMP Extras is pink
- Font character thickness does not adjust properly in UI Toolkit text when changing Bold Weight in Font Asset
Resolution Note:
OnPostProcess is recommended against when trying to switch the compression format, closed by design.
Link to docs: https://docs.unity3d.com/ScriptReference/AssetPostprocessor.OnPreprocessTexture.html and https://docs.unity3d.com/ScriptReference/AssetPostprocessor.OnPostprocessTexture.html
Updated C# script can be found down below as well.