Is there a way to opt-out of PolySpatialHoverEffect for UI?

We have full-screen, semi-transparent backgrounds for some of our UI, which on-click dismiss the UI. Because it’s set up as a button, it automatically receives a hover effect component.

We’d like a way to opt-out of that functionality if possible. Is there currently a way to do that? I tried getting a hold of a PolySpatialHoverEffect component on Start() and destrying it, but it looks like the hover effect is applied to UI at a lower level.

Thanks,
Joe

Not at present, I’m afraid; we automatically apply the hover effect to instances of Button, Dropdown, InputField, Scrollbar, Slider, and Toggle, so you’d probably have to use some other component (perhaps just an Image), and specifically listen for/handle clicks some other way–perhaps via adding a component that implements IPointerDownHandler?

That’s what I was thinking, thanks!

1 Like