Unity UI Extensions

RaycastMask

An example of an enhanced mask component able to work with the image data. Enables picking on image parts and not just the Rect Transform


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


Overview

An example of an enhanced mask component able to work with the image data. Enables picking on image parts and not just the Rect Transform


Properties

Property Description
Alpha Threshold Minimum alpha value required for a point to register as a hit.
Graphic Graphic source used for sampling pixels.
Raycast Target Toggle whether this graphic blocks raycasts.

Methods

This component does not expose public methods beyond inherited behaviour.


Usage

Add the effect to your object through the component menu using:

Add Component -> UI -> Extensions -> Raycast Mask


Video Demo

“Link to demo video or animated Gifs”


See also

N/A


Credits and Donation

senritsu


Sourced from