# ShinyEffectForUGUI
**Repository Path**: FREEstriker-Space/ShinyEffectForUGUI
## Basic Information
- **Project Name**: ShinyEffectForUGUI
- **Description**: Shiny effect of uGUI, which does not need mask or normal map.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-09-16
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
ShinyEffectForUGUI
===
### NOTE: This project has been merged to [UIEffect](https://github.com/mob-sakai/UIEffect).
Shiny effect without Mask commponent.
Since useless draw calls are suppressed, performance is good!

[](https://github.com/mob-sakai/ShinyEffectForUGUI/release)
[](https://github.com/mob-sakai/ShinyEffectForUGUI/releases)

[](https://github.com/mob-sakai/ShinyEffectForUGUI/blob/master/LICENSE.txt)
[](https://github.com/mob-sakai/ShinyEffectForUGUI/commits/develop)
[](https://github.com/mob-sakai/ShinyEffectForUGUI/issues)
[](https://github.com/mob-sakai/ShinyEffectForUGUI/compare/master...develop)
<< [Description](#Description) | [Demo](#demo) | [Download](https://github.com/mob-sakai/ShinyEffectForUGUI/releases) | [Usage](#usage) | [Development Note](#development-note) | [Change log](https://github.com/mob-sakai/ShinyEffectForUGUI/blob/develop/CHANGELOG.md) >>
## Description
ShinyEffectForUGUI applies _shiny-effect_ to uGUI element (Image, RawImage, Text, etc...) **WITHOUT Mask component** .
This will suppress extra draw calls and improve performance.

* With-mask method
* For example: ShineEffect from [unity-ui-extensions](https://bitbucket.org/UnityUIExtensions/unity-ui-extensions)
* 3 GameObject: Graphic + Mask + ShineEffect (masked)
* 
* At least 3 draw calls(1:Stencil on, 2:Draw graphic, 3:Stensil off), **FOR EACH** ui elements with shiny effect
* **Artifacts on the edges!**
* **Proposal:** Without-mask method
* shader applies shiny effect
* 1 draw dall
* Will be batched as possible
##### Features
* No Mask component
* Easy to control in inspector

* Supports AnimationClip
* Will be batched as possible
* Play effect from script (v0.4.0)
* `ShinyEffectForUGUI.Play(duration, updateMode)`

* Improve Visual quality (v0.4.0)

* The effect does not use other images such as normal map.
## Demo
[WebGL Demo](http://mob-sakai.github.io/ShinyEffectForUGUI/)
## Usage
1. Download ShinyEffectForUGUI.unitypackage from [Releases](https://github.com/mob-sakai/ShinyEffectForUGUI/releases).
1. Import the package into your Unity project. Select `Import Package > Custom Package` from the `Assets` menu.
1. Add `ShinyEffectForUGUI` component to UI element (Image, RawImage, Text, etc...) from `Add Component` in inspector.
1. Choose effect type and adjust values in inspector.
1. Enjoy!
##### Requirement
* Unity 5.5+ *(included Unity 2017.x)*
* No other SDK are required
## Development Note
#### What's doing?
* Control effect parameters for uGUI element WITHOUT MaterialPropertyBlock
* https://github.com/mob-sakai/UIEffect#how-to-control-effect-parameters-for-ugui-element-without-materialpropertyblock
* Directivity normalization
* Likely `Vector2.Product()`
* Linear shiny effect
## License
* MIT
* © UTJ/UCL
## Author
[mob-sakai](https://github.com/mob-sakai)
## See Also
* GitHub page : https://github.com/mob-sakai/ShinyEffectForUGUI
* Releases : https://github.com/mob-sakai/ShinyEffectForUGUI/releases
* Issue tracker : https://github.com/mob-sakai/ShinyEffectForUGUI/issues
* Current project : https://github.com/mob-sakai/ShinyEffectForUGUI/projects/1
* Change log : https://github.com/mob-sakai/ShinyEffectForUGUI/blob/master/CHANGELOG.md