This is intended to be the base class for all Teleportation Interactables. This abstracts the teleport request process for specalizations of this class.
Inheritance
BaseTeleportationInteractable
public abstract class BaseTeleportationInteractable : XRBaseInteractable
Fields
Declaration
protected MatchOrientation m_MatchOrientation
Field Value
Declaration
protected TeleportationProvider m_TeleportationProvider
Field Value
Declaration
protected BaseTeleportationInteractable.TeleportTrigger m_TeleportTrigger
Field Value
Properties
Specify which object's orientation in the rig will be matched with this Teleportation Interactable after teleporting.
Set to Camera if you wish to have the camera look at something in the forward direction of this Interactable or its specified anchor.
Declaration
public MatchOrientation matchOrientation { get; set; }
Property Value
The teleportation provider that this Teleport interactable will communicate Teleportation Requests to.
If no teleportation provider is configured, then on awake the base teleportation interactable will attempt to find a teleportation provider to work with.
Declaration
public TeleportationProvider teleportationProvider { get; set; }
Property Value
Specify when the teleportation will be triggered.
Declaration
public BaseTeleportationInteractable.TeleportTrigger teleportTrigger { get; set; }
Property Value
Methods
Declaration
protected override void Awake()
Overrides
Declaration
protected virtual bool GenerateTeleportRequest(XRBaseInteractor interactor, RaycastHit raycastHit, ref TeleportRequest teleportRequest)
Parameters
Returns
Declaration
protected override void OnSelectEnter(XRBaseInteractor interactor)
Parameters
Overrides
Declaration
protected override void OnSelectExit(XRBaseInteractor interactor)
Parameters
Overrides