docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GenerateTeleportRequest

    GenerateTeleportRequest(IXRInteractor, RaycastHit, ref TeleportRequest)

    Automatically called upon the teleport trigger event occurring to generate the teleport request. The teleportation destination pose should be filled out.

    Declaration
    protected override bool GenerateTeleportRequest(IXRInteractor interactor, RaycastHit raycastHit, ref TeleportRequest teleportRequest)
    Parameters
    Type Name Description
    IXRInteractor interactor

    The interactor that initiated the teleport trigger.

    RaycastHit raycastHit

    The ray cast hit information from the interactor.

    TeleportRequest teleportRequest

    The teleport request that should be filled out during this method call.

    Returns
    Type Description
    bool

    Returns true if the teleport request was successfully updated and should be queued. Otherwise, returns false.

    Overrides
    BaseTeleportationInteractable.GenerateTeleportRequest(IXRInteractor, RaycastHit, ref TeleportRequest)
    See Also
    QueueTeleportRequest(TeleportRequest)
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)