Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question TeleportationAnchor and XRSimpleInteractable on the same object

Discussion in 'XR Interaction Toolkit and Input' started by PatHightreeXVR, Nov 2, 2022.

  1. PatHightreeXVR

    PatHightreeXVR

    Joined:
    Dec 10, 2018
    Posts:
    19
    I need to add TeleportationAnchor components to any and all things I want my player to be able to teleport onto.
    But when I add an XRSimpleInteractable to the object, the teleport stops working (even though they use different InteractionLayerMasks).

    Any ideas on how I can get both to work on the same object?
     
  2. PatHightreeXVR

    PatHightreeXVR

    Joined:
    Dec 10, 2018
    Posts:
    19
    Ok, I found that I can have both in the same hierarchy, just not on the same gameobject.
    But they still fight each other over who can use the collider of the object.
    Is there a way to have them share the collider, or do I have to duplicate the collider ?