Issue with Hover Effect on uGUI Button (ColorTint Transition Type) on PolySpatial2.0

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

Thanks for bringing this to our attention. It looks like this is an issue with the way we compare colors in Swift, and we’ll fix it in a future release. The only way I can think of offhand to work around it would be to use a “normal color” with alpha 1 and a custom UI shader graph (copy Packages/PolySpatial/Resources/Shaders/MaskingShader.shadergraph and modify it) that inserts the desired alpha based on the hover state.

Thank you for your prompt response!
I’ll give it a try right away and I’m looking forward to waiting for it to be fixed.