Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feature Request Make BaseTeleportationInteractable work with interface instead of XRRayInteractor only

Discussion in 'XR Interaction Toolkit and Input' started by jorrit-de-vries, Dec 2, 2020.

  1. jorrit-de-vries

    jorrit-de-vries

    Joined:
    Aug 7, 2009
    Posts:
    71
    The current implementation of BaseTeleportationInteractable can only work with XRRayInteractor, while this requirement only stems from this interactor defining bool GetCurrentRaycastHit(out RaycastHit). What would make the system more flexible is for instance defining an interface for this methods, so other types of
    XRBaseInteractor can be used with teleportation as well. This could be something like

    Code (CSharp):
    1. public interface IRaycastInteractor
    2. {
    3.     bool GetCurrentRaycastHit(out RaycastHit raycastHit)
    4. }
     
  2. mfuad

    mfuad

    Unity Technologies

    Joined:
    Jun 12, 2018
    Posts:
    334
    Hi @jorrit5477, thanks for the feedback. Can you submit this request in our public roadmap so the team can properly track when planning? Thanks!
     
  3. jorrit-de-vries

    jorrit-de-vries

    Joined:
    Aug 7, 2009
    Posts:
    71
    Done, hop you received it...
     
  4. mfuad

    mfuad

    Unity Technologies

    Joined:
    Jun 12, 2018
    Posts:
    334
    Got it, thanks.