Skip to content

Latest commit

 

History

History
120 lines (76 loc) · 4.74 KB

README.md

File metadata and controls

120 lines (76 loc) · 4.74 KB

ShinyEffectForUGUI

NOTE: This project has been integrated into UIEffect, so we are NOT continuing development in this repository.

Shiny effect of uGUI, which does not need mask or normal map.
Since useless draw calls are suppressed, performance is good!

image



<< Description | Demo | Download | Usage | Development Note | Change log >>





Description

ShinyEffectForUGUI applies shiny-effect to uGUI element (Image, RawImage, Text, etc...) WITHOUT Mask component .
This will suppress extra draw calls and improve performance.

compare

  • With-mask method

    • For example: ShineEffect from unity-ui-extensions
    • 3 GameObject: Graphic + Mask + ShineEffect (masked)
      • image
    • 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
    inspector
  • Supports AnimationClip
  • Will be batched as possible
  • Play effect from script (v0.4.0)
    • ShinyEffectForUGUI.Play(duration, updateMode)
      button
  • Improve Visual quality (v0.4.0)
    image
    • The effect does not use other images such as normal map.





Demo

demo

WebGL Demo





Usage

  1. Download ShinyEffectForUGUI.unitypackage from Releases.
  2. Import the package into your Unity project. Select Import Package > Custom Package from the Assets menu.
  3. Add ShinyEffectForUGUI component to UI element (Image, RawImage, Text, etc...) from Add Component in inspector.
  4. Choose effect type and adjust values in inspector.
  5. Enjoy!
Requirement
  • Unity 5.5+ (included Unity 2017.x)
  • No other SDK are required





Development Note

What's doing?





License

  • MIT
  • © UTJ/UCL

Author

mob-sakai

See Also