UnmaskForUGUI
===
Reverse mask for uGUI element in Unity.
![](https://user-images.githubusercontent.com/12690315/51747120-e1d8dc80-20eb-11e9-952e-a67915af1294.png)
[![](https://img.shields.io/github/release/mob-sakai/UnmaskForUGUI.svg?label=latest%20version)](https://github.com/mob-sakai/UnmaskForUGUI/releases)
[![](https://img.shields.io/github/release-date/mob-sakai/UnmaskForUGUI.svg)](https://github.com/mob-sakai/UnmaskForUGUI/releases)
![](https://img.shields.io/badge/unity-5.5%2B-green.svg)
[![](https://img.shields.io/github/license/mob-sakai/UnmaskForUGUI.svg)](https://github.com/mob-sakai/UnmaskForUGUI/blob/upm/LICENSE.txt)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-orange.svg)](http://makeapullrequest.com)
<< [Description](#Description) | [WebGL Demo](#demo) | [Download](https://github.com/mob-sakai/UnmaskForUGUI/releases) | [Install](#install) | [Usage](#usage) >>
### What's new? [See changelog ![](https://img.shields.io/github/release-date/mob-sakai/UnmaskForUGUI.svg?label=last%20updated)](https://github.com/mob-sakai/UnmaskForUGUI/blob/upm/CHANGELOG.md)
### Do you want to receive notifications for new releases? [Watch this repo ![](https://img.shields.io/github/watchers/mob-sakai/UnmaskForUGUI.svg?style=social&label=Watch)](https://github.com/mob-sakai/UnmaskForUGUI/subscription)
<br><br><br><br>
## Description
Unmask provides the following features:
1. Reverse mask
2. Ray through the unmasked rectangle
3. Following another object
4. Support nesting
| Component | Features | Screenshot |
|-|-|-|
|**Unmask**|Reverse masking for parent Mask component.<br><br>**Fit Target / Fit On Late Update:** Fit graphic's transform to target transform on LateUpdate.<br>**Only For Children:** Unmask affects only for children.<br>**Show Unmask Graphic:** Show the graphic that is associated with the unmask render area.|<img src="https://user-images.githubusercontent.com/12690315/51745704-0e3e2a00-20e7-11e9-8da8-5abb1c5193bc.png" width="600px">|
|**UnmaskRaycastFilter**|The ray Passes through the unmasked rectangle.<br>You can click on the unmasked button on the back side.|<img src="https://user-images.githubusercontent.com/12690315/51745958-ebf8dc00-20e7-11e9-8cfc-8174e6ab2b7c.png" width="600px">|
<br><br><br><br>
## Demo
[WebGL Demo](http://mob-sakai.github.io/UnmaskForUGUI)
![demo](https://user-images.githubusercontent.com/12690315/46986251-4e296480-d129-11e8-8e3a-2bb0e5fbe533.gif)
<br><br><br><br>
## 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:
```js
{
"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](https://github.com/mob-sakai/UpmGitExtension).
#### Using .unitypackage file (for Unity 5.5+)
Download `*.unitypackage` from [Releases](https://github.com/mob-sakai/UnmaskForUGUI/releases) and import the package into your Unity project.
Select `Assets > Import Package > Custom Package` from the menu.
![](https://user-images.githubusercontent.com/12690315/46570979-edbb5a00-c9a7-11e8-845d-c5ee279effec.png)
<br><br><br><br>
## Usage
1. Add Unmask component to the UI element (Image, RawImage, Text, etc...) under Mask, from `Add Component` in inspector or `Component > UI > Unmask > Unmask` menu.
2. If you want to unmask the area of the button, follow the steps below:
* Set the button to `Fit Target` in Unmask component.
* If the button moves with animation etc., enable `Fit On LateUpdate` in Unmask component.
* Add a UnmaskRaycastFilter component to UI element blocking ray.
* Set the Unmask to `Unmask` in UnmaskRaycastFilter component.
* Disable `RaycastTarget` of the UI elements, as necessary.
![](https://user-images.githubusercontent.com/12690315/46986095-8a0ffa00-d128-11e8-83ac-9151e2d8635d.gif)
3. Enjoy!
##### Requirement
* Unity 5.5+ *(included Unity 2018.x)*
* No other SDK are required
<br><br><br><br>
## Example of using
| Case | Description |Screenshot |
|-|-|-|
|Unmasked text|Black screen is cut out with unmasked text.|![](https://user-images.githubusercontent.com/12690315/46914021-c6c9dd00-cfd2-11e8-9698-6332bac8fef5.png)|
|Hole|Black screen is cut out with unmasked Image.|![](https://user-images.githubusercontent.com/12690315/46985696-9b580700-d126-11e8-9b4a-3d66180c9562.png)|
|Tutorial button|In tutorial, only specific button can be pressed.|![](https://user-images.githubusercontent.com/12690315/46983810-30560280-d11d-11e8-86d5-b25117740df4.png)|
|Transition|Transition effect with silhouette.|![](https://user-images.githubusercontent.com/12690315/46983811-30560280-d11d-11e8-8d81-b38679cf9970.gif)|
<br><br><br><br>
## License
* MIT
* © UTJ/UCL
## Author
[mob-sakai](https://github.com/mob-sakai)
## 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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
RescueHero 救援英雄简单版 Unity类似拯救公主游戏项目源码C# 支持Unity版本2020.3.46f1及以上 商品描述 英雄开始了寻找宝藏并拯救公主的旅程,但猎人面前的谜题却将他困住了。你需要做的就是按照正确的顺序拉动别针,这样英雄就可以拿走隐藏的宝藏,并安全地拯救公主远离龙、狼和怪物。 特征 解决谜题并营救英雄,收集所有宝藏,杀死怪物并拯救公主。拉动销钉,将熔岩和有毒气体拉入敌人的拼图单元中,从而消灭敌人。切断绳索,从可怕的怪物手中救出公主。
资源推荐
资源详情
资源评论
收起资源包目录
RescueHero 救援英雄简单版 Unity类似拯救公主游戏项目源码C# (2002个子文件)
result_panel_close_ani.anim 48KB
result_panel_idle_ani.anim 43KB
sword_idle_ani.anim 19KB
Smoke Effect In Air.anim 16KB
door_active_ani.anim 14KB
door_ani.anim 14KB
home_ani.anim 13KB
light_ani.anim 13KB
adpanel_ani.anim 13KB
ExploreEffect.anim 11KB
result_panel_ani.anim 10KB
handtut_ani.anim 10KB
levelbutton_ani.anim 9KB
levebutton_active_ani.anim 9KB
home_close_ani.anim 8KB
deco_candle.anim 8KB
hand2_ani.anim 8KB
deco_torch.anim 8KB
hand3_ani.anim 8KB
lavaside_ani.anim 8KB
pane_hide_ani.anim 7KB
deco_torch_ani.anim 7KB
panel_show_ani.anim 7KB
lavawall_ani.anim 7KB
chestlight_ani.anim 7KB
Tut1.anim 5KB
home_idle_ani.anim 1KB
spine-unity-editor.asmdef 228B
spine-unity.asmdef 49B
LiberationSans SDF.asset 2.15MB
ProjectSettings.asset 19KB
EmojiOne.asset 13KB
LiberationSans SDF - Fallback.asset 9KB
InputManager.asset 6KB
Default Style Sheet.asset 5KB
QualitySettings.asset 5KB
GraphicsSettings.asset 2KB
Physics2DSettings.asset 2KB
TMP Settings.asset 2KB
NavMeshAreas.asset 1KB
CameraTexture - Background.asset 1KB
CameraTexture - Effect.asset 1KB
DynamicsManager.asset 1KB
PackageManagerSettings.asset 1KB
UnityConnectSettings.asset 853B
TagManager.asset 827B
Default BlendModeMaterials.asset 701B
EditorSettings.asset 622B
Settings.asset 568B
EditorBuildSettings.asset 447B
AudioManager.asset 360B
TimeManager.asset 195B
VersionControlSettings.asset 188B
XRSettings.asset 158B
VFXManager.asset 157B
NetworkManager.asset 151B
PresetManager.asset 120B
ClusterInputManager.asset 114B
SpriteVertexLighting.cginc 14KB
ShaderShared.cginc 11KB
SpriteSpecular.cginc 9KB
SpritePixelLighting.cginc 7KB
SpriteLighting.cginc 5KB
TMPro_Surface.cginc 4KB
Spine-Outline-Pass.cginc 3KB
Spine-Skeleton-Lit-Common.cginc 3KB
TMPro_Properties.cginc 3KB
TMPro.cginc 2KB
ShaderMaths.cginc 2KB
SpriteUnlit.cginc 1KB
SpriteShadows.cginc 982B
Spine-Skeleton-Lit-Common-Shadow.cginc 669B
ResultPanel.controller 4KB
Home 1.controller 4KB
RatePanel.controller 3KB
Level.controller 3KB
Plane.controller 3KB
lightctr.controller 3KB
Deco_Candle.controller 2KB
Tut.controller 2KB
ExploreEffect.controller 2KB
SmokeEffect In Air.controller 2KB
Deco_Candle 1.controller 2KB
LavaSide.controller 2KB
Deco_Torch.controller 2KB
LavaWall.controller 2KB
Light.controller 2KB
Sword.controller 2KB
Panel.controller 2KB
Hand.controller 2KB
Hand 2.controller 2KB
Hand 1.controller 2KB
Animation.cs 68KB
Water2DEditor.cs 63KB
AnimationState.cs 57KB
AssetUtility.cs 50KB
MeshGenerator.cs 50KB
SkeletonBaker.cs 47KB
SkeletonDataAssetInspector.cs 43KB
SpineSpriteShaderGUI.cs 42KB
共 2002 条
- 1
- 2
- 3
- 4
- 5
- 6
- 21
资源评论
- 默默o的鱼2024-03-04资源质量不错,和资源描述一致,内容详细,对我很有用。
小云同志你好
- 粉丝: 1049
- 资源: 931
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功