Awesome
ShinyEffectForUGUI
NOTE: This project has been merged to UIEffect.
Shiny effect without Mask commponent.
Since useless draw calls are suppressed, performance is good!
<< Description | Demo | Download | Usage | Development Note | Change log >>
<br><br><br><br>
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
- 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
<br><br>
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.
<br><br><br><br>
Demo
<br><br><br><br>
Usage
- Download ShinyEffectForUGUI.unitypackage from Releases.
- Import the package into your Unity project. Select
Import Package > Custom Package
from theAssets
menu. - Add
ShinyEffectForUGUI
component to UI element (Image, RawImage, Text, etc...) fromAdd Component
in inspector. - Choose effect type and adjust values in inspector.
- Enjoy!
Requirement
- Unity 5.5+ (included Unity 2017.x)
- No other SDK are required
<br><br><br><br>
Development Note
What's doing?
- Control effect parameters for uGUI element WITHOUT MaterialPropertyBlock
- Directivity normalization
- Likely
Vector2.Product()
- Likely
- Linear shiny effect
<br><br><br><br>
License
- MIT
- © UTJ/UCL
Author
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