docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Ray casts

    This page supplements the AR Foundation Ray casts manual. The following sections only contain information about APIs where Google's Android XR runtime exhibits platform-specific behavior.

    Tip

    When developing an AR app, refer to both the AR Foundation documentation as well as the required packages for each platform you support.

    Optional feature support

    Android XR supports ray casting from a ray and direction (world based ray casts). Android XR implements the following optional features of AR Foundation's XRRaycastSubsystem:

    Feature Descriptor Property Supported
    Viewport based raycast supportsViewportBasedRaycast
    World based raycast supportsWorldBasedRaycast Yes
    Tracked raycasts supportsTrackedRaycasts
    Note

    Refer to AR Foundation Ray cast platform support for more information on the optional features of the Raycast subsystem.

    Supported trackables

    Android XR supports ray casting against the following trackable types:

    TrackableType Supported
    BoundingBox
    Depth Yes
    Face
    FeaturePoint
    Image
    Planes Yes
    PlaneEstimated Yes
    PlaneWithinBounds Yes
    PlaneWithinInfinity Yes
    PlaneWithinPolygon Yes
    In This Article
    Back to top
    Copyright © 2025 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)