docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Graphic Raycaster

    The Graphic Raycaster is used to raycast against a Canvas. The Raycaster looks at all Graphics on the canvas and determines if any of them have been hit.

    The Graphic Raycaster can be configured to ignore backfacing Graphics as well as be blocked by 2D or 3D objects that exist in front of it. A manual priority can also be applied if you want processing of this element to be forced to the front or back of the Raycasting.

    Properties

    Property: Function:
    Ignore Reversed Graphics Should graphics facing away from the raycaster be considered?
    Blocking Objects Type of objects that are checked to determine if they block graphic raycasts.
    Blocking Mask Type of objects specified through LayerMask that are checked to determine if they block graphic raycasts.
    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)