Search Issue Tracker
By Design
Votes
0
Found in
2017.4
2019.2.8f1
2020.1
Issue ID
1202727
Regression
No
[TEXTURE] Png file in Import settings/Texture Format is set to RGB Compressed DXT1, even though it has an alpha channel
How to reproduce:
1. Open the attached DXT1CrunchedTest.zip project
2. Go to the Project window and select RandomStart.png
3. Inspect the Import settings (see the picture attached)
Expected: Texture Format RGBA Compressed DXT5
Actual: Texture Format RGB Compressed DXT1
Reproducible with: 2017.4.35f1, 2020.1.0a16
Notes:
- Could not reproduce with a new texture created via photoshop
- Attached to this case the png file in texture.zip and psd file in source.zip which are provided by the user
- Metadata file says that the png file has an alpha channel but in Unity Editor Import settings we can see that the texture format is RGB Compressed DXT1
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note:
This is expected behaviour.
The PNG file does not have an alpha channel so the automatic importing format is DXT1.
The PSD file does have an alpha channel but as it is completely white, the exporter is free to drop it (see https://www.w3.org/TR/PNG/#4Concepts.Implied-alpha). Even if the PNG was exported with the alpha channel, the unity importer would have noticed it is completely opaque and dropped it.
The metadata file does contain references to alpha but those are regular texture importer settings (and have no influence on this particular texture).
DXT5 can be explicitly requested in the format drop-down on the texture importer (if the platform supports it) if needed.