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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
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.