docs.unity.cn
    Show / Hide Table of Contents

    Class TeleportationProvider

    The TeleportationProvider is responsible for moving the XR Rig to the desired location on the user's request.

    Inheritance
    Object
    LocomotionProvider
    TeleportationProvider
    Inherited Members
    LocomotionProvider.startLocomotion
    LocomotionProvider.beginLocomotion
    LocomotionProvider.endLocomotion
    LocomotionProvider.system
    LocomotionProvider.Awake()
    LocomotionProvider.CanBeginLocomotion()
    LocomotionProvider.BeginLocomotion()
    LocomotionProvider.EndLocomotion()
    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public class TeleportationProvider : LocomotionProvider

    Properties

    currentRequest

    The current teleportation request.

    Declaration
    protected TeleportRequest currentRequest { get; set; }
    Property Value
    Type Description
    TeleportRequest

    validRequest

    Whether the current teleportation request is valid.

    Declaration
    protected bool validRequest { get; set; }
    Property Value
    Type Description
    Boolean

    Methods

    QueueTeleportRequest(TeleportRequest)

    This function will queue a teleportation request within the provider.

    Declaration
    public virtual bool QueueTeleportRequest(TeleportRequest teleportRequest)
    Parameters
    Type Name Description
    TeleportRequest teleportRequest

    The teleportation request to queue.

    Returns
    Type Description
    Boolean

    Returns true if successfully queued. Otherwise, returns false.

    Update()

    See .

    Declaration
    protected virtual void Update()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Wednesday, October 27, 2021