Class TeleportationArea
An area is a teleportation destination which teleports the user to their pointed location on a surface.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit
Syntax
public class TeleportationArea : BaseTeleportationInteractable
Methods
GenerateTeleportRequest(XRBaseInteractor, RaycastHit, ref TeleportRequest)
Generates a teleport request.
Declaration
protected override bool GenerateTeleportRequest(XRBaseInteractor interactor, RaycastHit raycastHit, ref TeleportRequest teleportRequest)
Parameters
Type | Name | Description |
---|---|---|
XRBaseInteractor | interactor | The interactor generating the teleport request. |
RaycastHit | raycastHit | The raycast hit where user will be teleported to. |
TeleportRequest | teleportRequest | The teleport request. |
Returns
Type | Description |
---|---|
Boolean | Returns true if button teleportation was successful. Otherwise, returns false. |