mob-sakai / DissolveEffectForUGUI

A dissolve effect for uGUI, without material instancing. Please star and watch this project :)

Home Page:https://github.com/mob-sakai/DissolveEffectForUGUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DissolveEffectForUGUI

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

A dissolve effect for uGUI, without material instancing.

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





Description

DissolveEffectForUGUI applies dissolve-effect to uGUI element (Image, RawImage, Text, etc...) WITHOUT material instancing.
This will suppress extra draw calls and improve performance.

  • Parameters
    • Dissolve factor
    • Edge width
    • Edge color
    • Edge color mode
    • Edge softness
    • Noise pattern image (shingle channel)
    • Effect player
      • Enable playing
      • Duration
      • Update mode





Demo

  • demo
    • Just 1 draw call!

WebGL Demo





Usage

  1. Download DissolveEffectForUGUI.unitypackage from Releases.
  2. Import the package into your Unity project. Select Import Package > Custom Package from the Assets menu.
  3. In Unity5.6+, enable TexCoord1 channel of canvas.
  4. Add DissolveEffectForUGUI component to UI element (Image, RawImage, Text, etc...) from Add Component in inspector.
  5. Control effect parameters in inspector.
  6. Enjoy!
Requirement
  • Unity 5.5+ (included Unity 2017.x)
  • No other SDK are required





Development Note

What's doing?





License

Author

mob-sakai

See Also

About

A dissolve effect for uGUI, without material instancing. Please star and watch this project :)

https://github.com/mob-sakai/DissolveEffectForUGUI

License:MIT License


Languages

Language:C# 70.4%Language:HLSL 14.3%Language:ShaderLab 13.6%Language:Shell 1.6%