# Teleportation not functioning

**URL:** https://discussions.unity.com/t/teleportation-not-functioning/889529
**Category:** XR
**Tags:** Question, com\_unity\_xr\_interaction\_toolkit
**Created:** [July 29, 2022, 6:05pm UTC](https://discussions.unity.com/t/teleportation-not-functioning/889529 "2022-07-29T18:05:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![BTKeevan](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@BTKeevan](https://discussions.unity.com/u/BTKeevan)
#### Post date: [July 29, 2022, 6:05pm UTC](https://discussions.unity.com/t/teleportation-not-functioning/889529/1 "2022-07-29T18:05:52Z")

</div>

Unsure whether to tag this as “question” or “bug.” Using Unity 2020.3.21f1 and XRI Toolkit 2.0.2. My XR origin has direct interactors on the left and right hands for picking up and interacting with objects, and I want to also set up left-hand teleportation. I have a left hand raycast interactor without a hand model on it, with its only interaction layer mask being “ground.” Raycast should light up green whenever I’m pointing at the teleportation area with the same interaction layer mask “ground.” Raycast does not light up green when I’m pointing at the ground. I don’t know why this has happened, or what I need to change in order to solve this issue.

---

<div class="post-metadata">

### Author: ![chris-massie](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/chris-massie/32/881565_2.png) [@chris-massie](https://discussions.unity.com/u/chris-massie)
#### Post date: [August 2, 2022, 8:26pm UTC](https://discussions.unity.com/t/teleportation-not-functioning/889529/2 "2022-08-02T20:26:05Z")

</div>

I’m guessing that your XR Ray Interactor is hitting another collider which is blocking the Teleportation Area from being hit. Try opening the **Window** \> **Analysis** \> **XR Interaction Debugger** to see if the Teleportation Area is showing up in the Valid Targets list to verify that it’s the closest thing being hit. If it’s blank, it’s probably hitting something else. If you have another GameObject for the ground that is not teleportable, you may need to raise the Teleportation Area up some so it’s closer and not blocked by the ground.

You may also need to adjust your Raycast Mask on the XR Ray Interactor and the GameObject Layer of the Teleportation Area to allow it to be hit. The Physics.Raycast call it does needs to be able to hit the object, so the layer has to be in the mask.

You may need to set Raycast Trigger Interaction to Ignore if its hitting an invisible Trigger collider instead of the Teleportation Area.

If none of those help, you can call [TryGetCurrent3DRaycastHit](https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.0/api/UnityEngine.XR.Interaction.Toolkit.XRRayInteractor.html#UnityEngine_XR_Interaction_Toolkit_XRRayInteractor_TryGetCurrent3DRaycastHit_UnityEngine_RaycastHit__) to get the [RaycastHit](https://docs.unity3d.com/ScriptReference/RaycastHit.html) and `Debug.Log` what collider you are hitting.

---

<div class="post-metadata">

### Author: ![starwalkerluke\_lu](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@starwalkerluke\_lu](https://discussions.unity.com/u/starwalkerluke_lu)
#### Post date: [May 12, 2023, 9:25pm UTC](https://discussions.unity.com/t/teleportation-not-functioning/889529/3 "2023-05-12T21:25:19Z")

</div>

That’s cool, problems solved
