UIEffect
===
UIEffect provides visual effect components for Unity UI.
[![](https://img.shields.io/npm/v/com.coffee.ui-effect?label=openupm®istry_uri=https://package.openupm.com)](https://openupm.com/packages/com.coffee.ui-effect/)
[![](https://img.shields.io/github/v/release/mob-sakai/UIEffect?include_prereleases)](https://github.com/mob-sakai/UIEffect/releases)
[![](https://img.shields.io/github/release-date/mob-sakai/UIEffect.svg)](https://github.com/mob-sakai/UIEffect/releases)
![](https://img.shields.io/badge/unity-2017.1%20or%20later-green.svg)
[![](https://img.shields.io/github/license/mob-sakai/UIEffect.svg)](https://github.com/mob-sakai/UIEffect/blob/master/LICENSE.txt)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-orange.svg)](http://makeapullrequest.com)
[![](https://img.shields.io/github/watchers/mob-sakai/UIEffect.svg?style=social&label=Watch)](https://github.com/mob-sakai/UIEffect/subscription)
[![](https://img.shields.io/twitter/follow/mob_sakai.svg?label=Follow&style=social)](https://twitter.com/intent/follow?screen_name=mob_sakai)
<< [Description](#Description) | [WebGL Demo](#demo) | [Installation](#installation) | [Usage](#usage) | [Example of using](#example-of-using) | [Change log](https://github.com/mob-sakai/UIEffect/blob/upm/CHANGELOG.md) | [Support](#support) >>
<br><br><br><br>
## Description
Let's decorate your UI with effects!
You can control parameters as you like from the script as well as inspector.
AnimationClip is supported as a matter of course!
![thumbnail](https://user-images.githubusercontent.com/12690315/41398364-155cf5a6-6ff2-11e8-8124-9d16ef6ca267.gif)
![image](https://user-images.githubusercontent.com/12690315/38594668-636dd3ac-3d82-11e8-9951-820964a6a95f.gif)
<br><br>
#### Available effects
| Component | Features | Screenshot |
| -- | -- | -- |
| **UIEffect** | Combine some visual effects.<br><br>**Effect Mode:** Grayscale, Sepia, Nega, Pixelation<br>**Color Mode:** Multiply, Fill, Additive, Subtract<br>**Blur Mode:** Fast, Medium, Detail<br>**Advanced Blur:** Enable more beautiful blurring. | ![][eff1] |
| **UIShiny** | Apply shining effect to a graphic.<br>The effect does not require Mask component or normal map.<br><br>**Parameters:** Effect factor, Width, Rotation, Softness, Brightness, Gloss | ![][eff2] |
| **UIDissolve** | Apply dissolve effect to a graphic.<br><br>**Color Mode for edge:** Multiply, Fill, Additive, Subtract<br>**Parameters:** Effect factor, Width, Rotation, Softness, Edge color<br>**Options:** Effect area, Keep effect aspect ratio | ![][eff3] |
| **UIHsvModifier** | Modify HSV for graphic.<br><br>**Target:** Color, Range<br>**Adjustment:** Hue, Saturation, Value | ![][eff4] |
| **UITransition Effect** | Apply transition effect with a single channel texture.<br><br>**Effect Mode:** Cutoff, Fade, Dissolve<br>**Options:** Effect area, Keep effect aspect ratio, transition texture<br>**Pass Ray On Hidden:** Disable the graphic's raycastTarget on hidden. | ![][eff5] |
[eff1]:https://user-images.githubusercontent.com/12690315/46639603-258df180-cba2-11e8-8f50-9e93bdc4c96e.png
[eff2]:https://user-images.githubusercontent.com/12690315/46639689-b1078280-cba2-11e8-8716-cbc634af7293.gif
[eff3]:https://user-images.githubusercontent.com/12690315/46639690-b1078280-cba2-11e8-8aa9-1d2650fe9a62.gif
[eff4]:https://user-images.githubusercontent.com/12690315/43200006-d6e2bf54-904e-11e8-9f22-0c0f9ce5912f.gif
[eff5]:https://user-images.githubusercontent.com/12690315/46639688-b1078280-cba2-11e8-8bbb-16b8498bca5f.gif
<br><br>
##### The following effects can be used with the above components.
| Component | Features | Screenshot |
| -- | -- | -- |
| **UIShadow** | Add shadow/outline to a graphic.<br>The performance is better than the default Shadow/Outline component.<br><br>**ShadowStyle:** Shadow, Shadow3, Outline, Outline8 | ![][meff1] |
| **UIGradient** | Change vertex color as gradient with angle and offset.<br><br>**Direction:** Horizontal, Vertical, Angle, Diagonal<br>**Options:** Offset, Color space | ![][meff2] |
| **UIFlip** | Flip a graphic.<br><br>**Direction:** Horizontal, Vertical, Both | ![][meff3] |
[meff1]:https://user-images.githubusercontent.com/12690315/46639604-258df180-cba2-11e8-98a9-aa31f04c695d.png
[meff2]:https://user-images.githubusercontent.com/12690315/40716995-ca87665e-6445-11e8-8233-ec2e21fefd6b.png
[meff3]:https://user-images.githubusercontent.com/12690315/40716996-cab1fd7e-6445-11e8-9753-962d23991d86.png
<br><br><br><br>
## Demo
[WebGL Demo](http://mob-sakai.github.io/UIEffect)
<br><br><br><br>
## Installation
#### Requirement
* Unity 2017.1 or later
* No other SDK are required
#### Using OpenUPM (for Unity 2018.3 or later)
This package is available on [OpenUPM](https://openupm.com).
You can install it via [openupm-cli](https://github.com/openupm/openupm-cli).
```
openupm add com.coffee.ui-effect
```
#### Using Git (for Unity 2018.3 or later)
Find the manifest.json file in the Packages folder of your project and edit it to look like this:
```js
{
"dependencies": {
"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git",
...
},
}
```
To update the package, change suffix `#{version}` to the target version.
* e.g. `"com.coffee.ui-effect": "https://github.com/mob-sakai/UIEffect.git#4.0.0",`
Or, use [UpmGitExtension](https://github.com/mob-sakai/UpmGitExtension) to install and update the package.
#### For Unity 2018.2 or earlier
1. Download a source code zip file from [Releases](https://github.com/mob-sakai/UIEffect/releases) page
2. Extract it
3. Import it into the following directory in your Unity project
- `Packages` (It works as an embedded package. For Unity 2018.1 or later)
- `Assets` (Legacy way. For Unity 2017.1 or later)
<br><br><br><br>
## How to play demo
- For Unity 2019.1 or later
- Open `Package Manager` window and select `UI Effect` package in package list and click `Demo > Import in project` button
- For Unity 2018.4 or earlier
- Click `Assets/Samples/UIEffect/Import Demo` from menu
The assets will be imported into `Assets/Samples/UI Effect/{version}/Demo`.
Open `
<br><br><br><br>
## Usage
1. Add any effect component to UI element (Image, RawImage, Text, etc...) from `Add Component` in inspector or `Component > UI > UIEffect > ...` menu.
![](https://user-images.githubusercontent.com/12690315/78853708-811c9200-7a5a-11ea-9826-0606046525b6.png)
2. Adjust the parameters of the effect as you like, in inspector.
![](https://user-images.githubusercontent.com/12690315/38594668-636dd3ac-3d82-11e8-9951-820964a6a95f.gif)
3. You can add or modify effects from the script.
```cs
var uieffect = gameObject.AddComponent<UIEffect>();
uieffect.effectMode = EffectMode.Grayscale;
uieffect.effectFactor = 0.85f;
uieffect.colorMode = ColorMode.Add;
uieffect.effectColor = Color.white;
uieffect.colorFactor = 0.1f;
uieffect.blurMode = BlurMode.FastBlur;
uieffect.blurFactor = 1;
```
![](https://user-images.githubusercontent.com/12690315/78853467-e4f28b00-7a59-11ea-82fa-3235aa95e993.png)
4. Enjoy!
<br><br><br><br>
## Example of using
UIEffect can easily be used in a variety of cases in the game.
| Case | Description | Screenshot |
| -- | -- | -- |
| Lock/unlock contents | Use UIEffect to apply grayscale.<br>Indicate to user that the content is unavailable. | ![][ex1] |
| Silhouette | Use UIEffect for filling color. | ![][ex2] |
| Soft shadow/<br>Outer glow | Use UIEffect and UIShadow to blur the shadow. | ![][ex3] |
| Colored shadow | Use UIEffect and UIShadow to fill shadow with color. | ![][ex4] |
| Blurred dynamic font | Use UIEffect to blur text.<br>To blur dynamic font cleanly, enable `Advanced Blur` option. | ![][ex5] |
| Text with outline & shadow | Use two UIShadows to add outline and shadow.<br>There is less overdraw than default Outline/Shadow. | ![][ex6] |
| Shining button | Use UIShiny for shining button.<br>Indicate to user that you can press the button. | ![][ex7] |
| Screen transition
没有合适的资源?快使用搜索试试~ 我知道了~
uinty- UI特效插件
共129个文件
meta:66个
cs:34个
png:9个
需积分: 5 28 下载量 32 浏览量
2023-07-10
12:03:15
上传
评论
收藏 4.25MB ZIP 举报
温馨提示
UI效果 图片处理:灰度图,做旧图,负片效果,图片像素化 颜色处理:乘积,剔除,填充,叠加 模糊模式: 快速/中阶/细节模式以及更漂亮的高阶模式 高级模糊:启用更美丽的模糊。 1、UI流光效果 --在图片上加闪光效果 2、UI溶解效果 --渐变溶解效果 3、UI 饱和度修改 4、UI 过场动画效果 5、UI 渐变色 6、UI 翻转将
资源推荐
资源详情
资源评论
收起资源包目录
uinty- UI特效插件 (129个子文件)
UIEffect-Editor.asmdef 346B
UIEffect_Demo.asmdef 322B
UIEffect.asmdef 27B
UIEffect.cginc 8KB
UIEffectSprite.cginc 1KB
UIEffect_Demo_For Thumbnail.controller 38KB
UIEffect_Demo_Transition.controller 27KB
UIEffect.cs 12KB
UIShadow.cs 12KB
UITransitionEffect.cs 10KB
UIDissolve.cs 9KB
UIGradient.cs 9KB
UIShiny.cs 8KB
BaseMeshEffect.cs 7KB
ParameterTexture.cs 6KB
UIGradientEditor.cs 6KB
BaseMaterialEffect.cs 6KB
UIHsvModifier.cs 5KB
UITransitionEffectEditor.cs 5KB
UIDissolveEditor.cs 4KB
GraphicConnector.cs 4KB
UIEffectEditor.cs 4KB
EffectPlayer.cs 4KB
EffectArea.cs 4KB
UIShinyEditor.cs 4KB
ImportSampleMenu.cs 3KB
UISyncEffect.cs 2KB
UIFlip.cs 2KB
Packer.cs 2KB
UIShadowEditor.cs 2KB
MaterialCache.cs 2KB
UIEffect_Demo.cs 2KB
UIHsvModifierEditor.cs 2KB
UIEffect_Demo_ColorControl.cs 1KB
Matrix2x3.cs 919B
MaterialDirtyScope.cs 811B
UIEffect_Demo_PropertyControl.cs 659B
EffectMode.cs 228B
ShadowStyle.cs 226B
BlurMode.cs 222B
ColorMode.cs 215B
.DS_Store 10KB
.DS_Store 8KB
.DS_Store 6KB
package.json 677B
CHANGELOG.md 28KB
README.md 10KB
LICENSE.md 1KB
UIEffect_Demo_Atlas.png.meta 4KB
UITransitionTex_Demo1.png.meta 2KB
UITransitionTex.png.meta 2KB
UITransitionTex_Demo3.png.meta 2KB
UITransitionTex_Demo4.png.meta 2KB
UITransitionTex_Demo2.png.meta 2KB
Default-Transition.png.meta 2KB
UIEffect_Demo_Pattern.png.meta 2KB
UITransition_Art.png.meta 2KB
UITransitionEffect.cs.meta 431B
UIDissolve.cs.meta 338B
UITtransition.shader.meta 335B
UIDissolve.shader.meta 298B
UIShadow.cs.meta 265B
ShadowStyle.cs.meta 263B
BlurMode.cs.meta 263B
EffectMode.cs.meta 263B
ColorMode.cs.meta 263B
EffectPlayer.cs.meta 263B
MaterialCache.cs.meta 263B
UIEffect_Demo.cs.meta 262B
EffectArea.cs.meta 262B
UIHsvModifier.cs.meta 262B
UIEffect.cs.meta 262B
UIGradient.cs.meta 262B
UIFlip.cs.meta 262B
UITransitionEffectEditor.cs.meta 262B
UIShadowEditor.cs.meta 262B
UIGradientEditor.cs.meta 262B
UIShinyEditor.cs.meta 262B
UIHsvModifierEditor.cs.meta 262B
UIEffectEditor.cs.meta 262B
UIDissolveEditor.cs.meta 262B
ParameterTexture.cs.meta 262B
BaseMaterialEffect.cs.meta 262B
Matrix2x3.cs.meta 262B
Packer.cs.meta 262B
UIShiny.cs.meta 262B
UIEffect_Demo_PropertyControl.cs.meta 243B
UIEffect_Demo_ColorControl.cs.meta 243B
ImportSampleMenu.cs.meta 243B
MaterialDirtyScope.cs.meta 243B
GraphicConnector.cs.meta 243B
BaseMeshEffect.cs.meta 243B
UISyncEffect.cs.meta 243B
UIEffectSprite.cginc.meta 195B
UIEffect.cginc.meta 195B
UIHsvModifier.shader.meta 195B
UIShiny.shader.meta 195B
UIEffect.shader.meta 195B
Common.meta 191B
UIEffect_Demo_Transition.controller.meta 180B
共 129 条
- 1
- 2
资源评论
格拉格拉
- 粉丝: 1w+
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功