Teleportation in unity

I have a question, why the teleportation ray length is unlimited, can anyone tell me what is the problem?

It’s hard to tell which system you are using for teleportation from this screenshot. But in Unity’s XR Interaction Toolkit the XR Ray Interactor component has a Max Raycast Distance variable that can be used to limit the reach of a user when selecting or teleporting.


yes I’m using XR interaction toolkit
thanks I’ll try that.