docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor XRRaycastHit

    XRRaycastHit(TrackableId, Pose, float, TrackableType)

    Constructs an XRRaycastHit.

    Declaration
    public XRRaycastHit(TrackableId trackableId, Pose pose, float distance, TrackableType hitType)
    Parameters
    Type Name Description
    TrackableId trackableId

    The TrackableId of the trackable which was hit.

    Pose pose

    The session-space Pose of the intersection.

    float distance

    The session-space distance from the raycast origin to the intersection point.

    TrackableType hitType

    The types of trackables which were hit by the ray.

    In This Article
    Back to top
    Copyright © 2024 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)