VR Interactive Item with Alpha

Hello,

I have different ugui buttons that fade up and down as the user progresses through the scene. The problem is that VR Interactive Item activates even if the alpha is zero. Is there a setting I am missing that can ignore VR Eye Raycaster when the alpha is zero?

Thanks!

You can set interactable to false on the button when the alpha is zero. Alternatively you could implement your own graphic raycast and put that on the canvas instead of Unity’s and have it always check alpha if you have a lot. You can base it on Unity’s implementation below.

https://bitbucket.org/Unity-Technologies/ui/src/0155c39e05ca5d7dcc97d9974256ef83bc122586/UnityEngine.UI/UI/Core/GraphicRaycaster.cs?at=5.2&fileviewer=file-view-default