docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Physics Raycaster

    The Raycaster raycasts against 3D objects in the scene. This allows messages to be sent to 3D physics objects that implement event interfaces.

    Properties

    Property: Function:
    Depth Get the depth of the configured camera.
    Event Camera Get the camera that is used for this module.
    Event Mask Logical and of Camera mask and eventMask.
    Final Event Mask Logical and of Camera mask and eventMask.
    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)