For some reason, the XRSpatialPointerInteractor doesn’t provide any option to filter by Interaction Layer. I think it’s causing AR Meshes and AR Planes to interfere with my interactables.
How can I get my gazes, pinches, and pokes to ignore unwanted layers?
RealityKit and PolySpatial have their own, totally different system going on under the hood. By setting the included colliders in PlayerSettings > PolySpatial to ONLY the layers I want to interact with gaze/pinch/poke, I can get the result I want.
These layers are not Interaction Layers by the way – just good old fashioned layers from the Layers and Tags Manager.
Unfortunately, it doesn’t look like you can change an object’s layer at runtime to disable/enable its interactability on the fly. (At least, that’s what I observe.) Thankfully, at the moment, I don’t seem to need this capability.