Home>

I'm currently creating a VR game using Unity.

Status

Currently, I have multiple buttons in the scroll view.
Colliders are attached to all the buttons.
The original image is set for the image of the button.

If i attach the "Mask" component to "Viewport" and scroll the button out of "Viewport", the button's imaghe will disappear, but the button collider will be detected even if you can't see it.

I want to solve

I want to prevent the collision of buttons outside "Viewport" from being detected when scrolling in the scroll view.

Also, is there a way to get the transparent part with msak?

In VR, if the button does not have a collider, the event system will not be received, so a collider is attached.