|
|
||
|---|---|---|
| .. | ||
| Scripts | ||
| CHANGELOG.md | ||
| CHANGELOG.md.meta | ||
| LICENSE.md | ||
| LICENSE.md.meta | ||
| README.md | ||
| README.md.meta | ||
| Scripts.meta | ||
| package.json | ||
| package.json.meta | ||
README.md
UnmaskForUGUI
Reverse mask for uGUI element in Unity.
<< Description | WebGL Demo | Download | Install | Usage >>
What's new? See changelog 
Do you want to receive notifications for new releases? Watch this repo 
Description
Unmask provides the following features:
- Reverse mask
- Ray through the unmasked rectangle
- Following another object
- Support nesting
| Component | Features | Screenshot |
|---|---|---|
| Unmask | Reverse masking for parent Mask component. Fit Target / Fit On Late Update: Fit graphic's transform to target transform on LateUpdate. Only For Children: Unmask affects only for children. Show Unmask Graphic: Show the graphic that is associated with the unmask render area. |
![]() |
| UnmaskRaycastFilter | The ray Passes through the unmasked rectangle. You can click on the unmasked button on the back side. |
![]() |
Demo
Install
Using UnityPackageManager (for Unity 2018.3+)
Find the manifest.json file in the Packages folder of your project and edit it to look like this:
{
"dependencies": {
"com.coffee.unmask": "https://github.com/mob-sakai/UnmaskForUGUI.git#1.1.3",
...
},
}
To update the package, change #{version} to the target version.
Or, use UpmGitExtension.
Using .unitypackage file (for Unity 5.5+)
Download *.unitypackage from Releases and import the package into your Unity project.
Select Assets > Import Package > Custom Package from the menu.

Usage
- Add Unmask component to the UI element (Image, RawImage, Text, etc...) under Mask, from
Add Componentin inspector orComponent > UI > Unmask > Unmaskmenu. - If you want to unmask the area of the button, follow the steps below:
- Set the button to
Fit Targetin Unmask component. - If the button moves with animation etc., enable
Fit On LateUpdatein Unmask component. - Add a UnmaskRaycastFilter component to UI element blocking ray.
- Set the Unmask to
Unmaskin UnmaskRaycastFilter component. - Disable
RaycastTargetof the UI elements, as necessary.

- Set the button to
- Enjoy!
Requirement
- Unity 5.5+ (included Unity 2018.x)
- No other SDK are required
Example of using
License
- MIT
- © UTJ/UCL
Author
See Also
- GitHub page : https://github.com/mob-sakai/UnmaskForUGUI
- Releases : https://github.com/mob-sakai/UnmaskForUGUI/releases
- Issue tracker : https://github.com/mob-sakai/UnmaskForUGUI/issues
- Current project : https://github.com/mob-sakai/UnmaskForUGUI/projects/1
- Change log : https://github.com/mob-sakai/UnmaskForUGUI/blob/upm/CHANGELOG.md







