ZMWSLI0-SL2021-GR11/Projekt/MWSProjekt/Library/PackageCache/com.unity.ugui@1.0.0/Documentation~/script-GraphicRaycaster.md

14 lines
753 B
Markdown

# 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? |
|__Blocked Objects__ | Type of objects that will block graphic raycasts. |
|__Blocking Mask__ | Type of objects that will block graphic raycasts. |