Search Issue Tracker
By Design
Votes
0
Found in
2019.4
2020.2.3f1
2020.3
2021.2
Issue ID
1326162
Regression
No
Graphics.CopyTexture creates corrupted texture assets when copying compressed texture formats
Steps to reproduce:
1. Open the attached project.
2. Open the "Test" Scene
3. Enter the PlayMode
4. Select four newly created ".asset" files in the Assets folder (Project window), right-click and select "Reimport"
Expected results: four assets are created in the Assets folder containing copies of the textures from the Assets > Textures folder
Actual result: two texture assets ("ColorCompressed" and "NormalCompressed") are corrupted
Reproducible with: 2019.4.25f1, 2020.3.6f1, 2021.2.0a15
Not reproducible with: 2018.4.34f1 - compilation errors prevented from testing
Notes:
- Tested and reproduced using Vulkan, OpenGLCore, OpenGLES3, and Direct3D11 graphics API
- Reimport step (4th) is not always needed, on some Unity versions assets are displayed corrupted as soon as they're created, on others assets appear correct until reimported
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
We are running into design limitations that make it hard to create a clean long term fix for this case.
An overhaul of the Texture area will continue in the future, this should allow to better handle this issue.
User should have an acceptable workaround for their usecase.