docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Ray casts

    Cast rays against detected surfaces.

    This section is a supplement to the AR Foundation Ray casts manual. The following topics contain information only about APIs where Spatial Entities exhibits unique 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.

    Refer to the following topics to understand how ray casts work with OpenXR Spatial Entities:

    Topic Description
    Ray casts platform support Understand the AR Foundation capabilities implemented by the OpenXR Spatial Entities ray cast provider.
    Spatial Entities Ray Casts feature Learn how to use ray casts with OpenXR Spatial Entities.
    In This Article
    Back to top
    Copyright © 2026 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)