How to teleport on an XRGrabInteractable?

I would like the player to be able to teleport (XR Ray Interactor) on objects that are also using an XRGrabInteractable. So far I was unsuccessful, the XRRayInteractor just grabs the grabbable object (and I need the object to be both grabbable and “teleportable”).

I tried to set an OnHover/OnSelect event to disable the XRGrabInteractable script when the teleport is hovering/selecting, but disabling the script seems to have absolutely no effect. I cannot set the object to a layer that doesn’t interact with the XRRayInteractor, otherwise I couldn’t teleport on it.

Is there a way to make an object grabbable only with the hands but also available to teleport on?

Thank you

I officially ran out of ideas. I tried to override XRInteractionManager to disable the XRGrabInteractable when the object is hovered by the XRRayInteractor but it doesn’t work. Setting the script to “.enabled = false” has no effect and even calling UnregisterInteractable doesn’t seem to have any effect.

In my last attempt I put both a XRGrabInteractable and a TeleportArea script on a gameobject, ideally I want to disable the XRGrabInteractable when the player hovers with the teleport ray so that they can teleport on the object, but nothing seems to work. If anyone reads this post and has any suggestion, thanks in advance, taken separately both script works of course, but I can’t find a way to programmatically enable one and disable the other depending on the teleport ray interaction.