Unity version: 6000.0.23f
Hey there, I have a problem.
My near-far Interactor only works when everything is set to default.
What I want: As you can see in the pictures below I set up both Interaction Layer Masks (Near-Far Interactor and XR Grab Interactor) to overlap with at least one layer. On my understanding, the near-far Interactor should now be able to grab the Interactable. But it doesn’t.
The only case where it works is when I leave both Gameobject Layers (not the Interaction Layer) at default. It seems that the Interaction Layer Mask does not have any influence at all. What am I doing wrong here?
1 Like
SAME ISSUES HERE Unity version: 6000.0.34f
Hey @GlaDos_sae and @alienheretic.
I think I understand what is going on, but my one question would be if the GameObject layers are different in the cases where it does not work, or if you leave it as Default and the Interaction Layer Mask still does not change what can be hovered and selected?
I ask because when it comes to the Interaction Layer Mask, this is something that is only considered during interaction processing by the Interaction Manager. To even get to that step, there has to be a regular Unity physics interaction (on the same GameObject Layer). So while the 2 layer masks are not directly related as to what the Interaction Manager filters out, the Interactor and Interactables must share at least one GameObject Layer and one Interaction Layer Mask layer to trigger an interaction.
Hopefully this explains a bit more about how it works. If you have configured things as I described and you still are not seeing it work correctly, please post screenshots of the game object layer settings as well so we can help diagnose.