Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2021.2.0a20
Issue ID
1341100
Regression
No
[UGUI] Image with crunch compression can still have a modified alphaHitTestMinimumThreshold
[UGUI] Image with crunch compression can still have a modified alphaHitTestMinimumThreshold
The alphaHitTestMinimumThreshold can be modified from script even if the image is using crunch compression. This make the ReadPixels invalid.
Steps to reproduce:
1. Import the package.
2. Press Play.
- Image on the left (green) is compressed and will change its alphaHit, which should be invalid
- Image on the right (red) will chaneg its alphaHit (valid), then change its sprite to the green one, which is compressed (invalid)
3. Hover both images
4. Notice the weird behavior of the hovering, but no errors are displayed
Reproduced with 2021.2.0a20
Comments (1)
-
virgiledfg
Apr 23, 2025 20:37
There is a problem with the solution in this issue: the message printed here is badly worded where it says that Crunch Compression should be ON, where it should be off.
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 (fix version 2021.2):
Added an error when player wants to change the alphaHitTestMinimumThreshold on an image using crunch compression
Also, added a warning when player wants to change an image with alphaHitTestMinimumThreshold > 0 for a sprite using crunch compression.