I’m currently implementing hover effects on uGUI buttons using the guidelines from this Unity documentation. I’ve attached an image and button component to a uGUI object, with the button’s transition type set to ColorTint.
However, I encountered an issue: the hover effect doesn’t seem to work when the Normal Color’s alpha is less than 1. I tested a few variations, as shown in the table below:
| Index | Image | Button Normal Color | Button Highlighted Color | Behavior |
|---|---|---|---|---|
| 1 | alpha1 | alpha 0.2 | alpha 0.6 | Not working |
| 2 | alpha1 | alpha 1 | alpha 0.2 | Working |
| 3 | alpha1 | alpha 0.2 | alpha 0.5 | Not working |
| 4 | alpha0.3 | alpha 1 | alpha 0.5 | Working |
| 5 | alpha0.3 | alpha 1 | alpha 1 | Working |
It seems that when the Normal Color’s alpha value is less than 1, the hover effect doesn’t trigger as expected. I’m wondering if this is a known issue or if it might be resolved in a next update.
Has anyone else experienced this issue, or does anyone have a potential workaround?
My Environment
visionOS: 2.0
PolySpatial: 2.0pre11
Unity: 6000.0.21f1